What exactly do you mean by "on the dialog itself". My guess would be that u have an edit control whose properties are set in such a way that it appears flat and does not look like a seperate control. With this set, you can at run time set the data into this text box by assigning the value to its member variable and then calling UpdateData ().
hi there, again the method by sriks is very much fine... but i think that you want to dusplay the int variable 'in the dialog itself, as text'... that means you want a "Static Text" (also called Labels) in the dialog box... to do this you add a CStatic control to the dialog box, and also add a CStatic member variable(by control) to the dialog class . And then when you want to display text, you can call m_cstatic.SetWindowText()...(m_cstatic is a control variable). and in case you have added the variable cstatic to be associated with the control's Value, then you have to call UpdateData(TRUE), after setting the valuue of the variable...
alternately, you can hide the text by displaying a blank string or by using the ShowWindow(SW_HIDE) if it is a control variable...
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.