BOOL     bRv; WNDCLASS wc;  wc.style         = CS_HREDRAW | CS_VREDRAW | CS_PARENTDC | CS_SAVEBITS; wc.lpfnWndProc   = (WNDPROC)DlgProcMain; wc.cbClsExtra    = 0; wc.cbWndExtra    = 0; wc.hInstance     = hInstance; wc.hIcon         = LoadIcon(hSetupRscInst, MAKEINTRESOURCE(IDI_SETUP)); wc.hCursor       = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_ACTIVECAPTION + 1); wc.lpszMenuName  = NULL; wc.lpszClassName = CLASS_NAME_SETUP;  bRv = RegisterClass(&wc); if(bRv == FALSE) return(bRv);
BOOL InitApplication(HINSTANCE hInstance, HINSTANCE hSetupRscInst){  BOOL     bRv;  WNDCLASS wc;  wc.style         = CS_HREDRAW | CS_VREDRAW | CS_PARENTDC | CS_SAVEBITS;  wc.lpfnWndProc   = (WNDPROC)DlgProcMain;  wc.cbClsExtra    = 0;  wc.cbWndExtra    = 0;  wc.hInstance     = hInstance;  wc.hIcon         = LoadIcon(hSetupRscInst, MAKEINTRESOURCE(IDI_SETUP));  wc.hCursor       = LoadCursor(NULL, IDC_ARROW);  wc.hbrBackground = (HBRUSH)(COLOR_ACTIVECAPTION + 1);  wc.lpszMenuName  = NULL;  wc.lpszClassName = CLASS_NAME_SETUP;  bRv = RegisterClass(&wc);  if(bRv == FALSE)    return(bRv);  return(InitDialogClass(hInstance, hSetupRscInst));}