klax33
asked on
Change Text of a CText Static
I have several CText static text areas on a dialog in my application. I'm trying to change the text contained within them when certain events occur. Specifically, I'm trying to print the name of the file opened to the static text control. I have all the code in place to give me the filename from CFileDialog, but cannot implement the change to the static text controls. I previously did this with edit boxes, but I would like to convert to static texts for a more polished look. I was thinking along the lines of getting a pointer to the control and using *ptr->SetWindowText(str_Te xt) but was unable to do it. I would appreciate any help offered. Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER