View Full Version: Setting the caption of an edit

C++ Learning Community > win32 api C++ programming > Setting the caption of an edit


Title: Setting the caption of an edit


Dragon - July 2, 2003 12:04 AM (GMT)
When you create the edit window you can give it a caption. How would I change the caption later on, say in WM_COMMAND?

dr voodoo - July 2, 2003 03:02 PM (GMT)
CODE
SetWindowText(hwnd, "This is a string");

Where hwnd is the handler of the EDIT not of the parent window

Dragon - July 2, 2003 04:04 PM (GMT)
Hey, thanks a lot.




* Hosted for free by InvisionFree