Increasing Static controll size

I'm trying to increase the static controll text, but it doesnt do anything :

1
2
3
4
5
6
	HFONT hFont = CreateFont (80, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE, ANSI_CHARSET, 
	  OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, 
	  DEFAULT_PITCH | FF_DONTCARE, TEXT("Tahoma"));

	SendMessage(StaticText, WM_SETFONT, (WPARAM)hFont, TRUE);
	StaticText = CreateWindow( TEXT("static"), "Welcome!", WS_CHILD | WS_VISIBLE, 130, 10, 70, 20, MainHwnd, NULL, hXInstance, NULL);


What is the problem? I also tried sending the Window HWND, though it did not work either...
You are using WM_SETFONT before even creating the static control.
Topic archived. No new replies allowed.