Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / very new acn anyone help??

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 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???
Message2. 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 • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2022-10-7  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0