1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = 0;
wc.lpfnWndProc = WindowProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
//wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wc.hIcon = LoadIcon(NULL, (LPCSTR)IDI_ICON1);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = CreateSolidBrush(RGB(240, 240, 240));
wc.lpszMenuName = NULL;
wc.lpszClassName = szAppName;
wc.hIconSm = LoadIcon(NULL, (LPCSTR)IDI_ICON1);
RegisterClassEx(&wc);
hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, szAppName, "", WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, a, b, c, d, NULL, NULL, hInstance, NULL);
|