| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. very new acn anyone help?? #3504 Posted by: 2004-03-13 00:42:34 | got this code:
hinfo= CreateWindowEx(0,TEXT("STATIC"),NULL, WS_CHILD|WS_VISIBLE|SS_LEFT,47,170,180,70, hwnd,(HMENU)IDC_INFO,hInstance,NULL);
SendMessage(hinfo,WM_SETFONT, (WPARAM)hFont ,MAKELPARAM(TRUE, 0));
i wanna chnage the color of the font in the text box which is in:
hwnd,(HMENU)IDC_INFO,hInstance,NULL);
is there any way??? | 2. Re: very new acn anyone help?? #3513 Posted by: upCASE 2004-03-16 00:27:02 | Hi! Sorry to say this, but this forum is about programming using the wxWidgets library (normally to be platform independent AND not having to use win32 API calls). Anyway, I had a quick look at the reference. You should check the section "Fonts and Text" and the create a HFONT and set it using SendMessage like above. MSDN is always a good place to check, too.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|