I have just recently started in Visual C++. Now I have this problem. It's properly very simple. I have made a simple SDK Platform whit a button and a static. Now i would like to know, how I get text into the static when i press the button ?
1. Right click the static control and select class wizard
2. Click the Member Variables tab
3. Select your static control
4. Click add member variable and for type use Value/CString
5. Name your member variable
(lets say you named your variable m_staticText)
in your OnClick function for your button,
1. set m_staticText to a string.
2. Type "UpdateData(FALSE);" at the end of the funciton
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.