In my program i have some info stored in a char... how can i have this show in my static text box?
thanks for your time
Printable View
In my program i have some info stored in a char... how can i have this show in my static text box?
thanks for your time
Post a 'WM_SETTEXT' message to the static control....
You can also use SetDlgItemText() if your control is on the dialog box .
Or you can use SetWindowText() which sends the message. Won't work in a dialog box or standard window as it will change the title box instead. But it works nice for buttons and static windows.
Remember to put these call in the WM_PAINT message in your winproc...
-face
I think your thinking of DrawText or TextOut. SetWindowText, SetDlgItemText or posting a WM_SETTEXT message should NOT be done in a WM_PAINT handler.Quote:
Originally Posted by ecaf