I've been starting to program in Windows, and all of the tutorials I have seen thus far have shown windows of standard fonts, but mine is always larger than the normal type. Example code:
Code:
WNDCLASSEX wndclass = {
sizeof(WNDCLASSEX),
0,
(CS_HREDRAW, CS_VREDRAW etc.)
WndProc,
0,
0,
hInstance,
LoadIcon(NULL, IDI_WINLOGO),
LoadCursor(NULL, IDC_ARROW),
(HBRUSH) GetStockObject (LTGRAY_BRUSH),
NULL,
"Main Window",
LoadIcon(NULL, IDI_APPLICATION)
};
/*
Irrelevant code ...
*/
hwnd = CreateWindowEx ( WS_EX_APPWINDOW,
"Main Window",
"Some Title",
WS_SYSMENU | WS_MINIMIZEBOX,
400,
300,
400,
500,
NULL,
NULL,
hInstance,
NULL);
And my static label is created as thus:
Code:
CreateWindow("Static", "Something",
SS_RIGHT | WS_CHILD | WS_VISIBLE,
0, 0, 70, 20, hwnd, 0, g_hInst, 0);
As always, I'll let you all know if I figure out why this happens, but for now, this looks like it'll take awhile (it's been two or three days already...). Thanks.
I might also add that the only way I've seen examples that have the default fonts and sizes is by using the MFC. Is this always true?