SpuN
December 6th, 2004, 04:49 AM
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
thanks for your time
|
Click to See Complete Forum and Search --> : Changing Static Text at Runtime SpuN December 6th, 2004, 04:49 AM 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 Andreas Masur December 6th, 2004, 05:54 AM Post a 'WM_SETTEXT' message to the static control.... genossa December 6th, 2004, 06:59 AM You can also use SetDlgItemText() if your control is on the dialog box . Gyannea December 6th, 2004, 07:04 AM 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. ecaf December 7th, 2004, 02:40 PM Remember to put these call in the WM_PAINT message in your winproc... -face Martin O December 9th, 2004, 02:49 PM 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. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |