Home > Software engineering >  How do you make static text in the text, changing the MFC
How do you make static text in the text, changing the MFC

Time:03-04


Need to implement the function of the is: suppose the background has been stored. Ini file, click on the "start/stop" button, after reading the text box. Ini file in a text, and constantly changing in the text box, click the "start/stop" button again, the text box and stop change,
How to implement, bosses, please help advice, specific to add variables, add messages of this kind of concrete steps,

CodePudding user response:

The CWnd: : SetWindowText
Void SetWindowText (LPCTSTR lpszString);

The Parameters

LpszString

Points to a cstrings object or null - terminated string to be 2 as the new title or control text.

Few

Sets the window's title to the specified text. If the window is a control, the text within the control is set.

This function causes aWM_SETTEXT message to be sent to This window.

CWnd Overview | Class Members | Hierarchy Chart

See Also CWnd: : GetWindowText, : : SetWindowText
  • Related