@Joelito
Hmmm... that didn't seem to do anything.
Here is what I tried:
Code:
HGDIOBJ system_font;
HWND my_window
//...
int main(int argc,char **app_param)
{
//...
//Window creation
//...
//UI creation
//...
system_font=GetStockObject(DEFAULT_GUI_FONT);
SendMessage(my_window,WM_SETFONT,(WPARAM)system_font,true);//I tried true and false.
}
I also tried putting it before "UI Creation".
My other attempt was:
Code:
//Declarations, int main(), window and UI creation, ect...
LRESULT WINAPI WndProc(HWND hwnd, UINT uMsg, WPARAM wParam,LPARAM lParam)
{
HDC hdc;
PAINTSTRUCT ps;
switch(uMsg)
{
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
//Set the font
system_font=SelectObject(hdc,GetStockObject(DEFAULT_GUI_FONT));
SendMessage(my_window,WM_SETFONT,(WPARAM)system_font,false);
EndPaint(hwnd, &ps);
return 0;
//...
}
@Ken Fitlike
Got it working, thanks!
Code:
my_class.hbrBackground=GetSysColorBrush(COLOR_3DFACE);
~DtD