Setting pushbutton caption
Posted on 1998-08-14
I'm pretty new to MFC, and I have the following problem:
I simply want to change the the caption of a pushbutton so that when the user clicks it, the text changes from "Start" to "Stop"or vice versa. I don't want to use bitmaps, and I don't want to create two buttons and show/hide them - I would like to learn how to programatically change the text of just one button.
In an MFC created dialog-based app called MyTest, with classes MyTest and MyTestDlg, and a pushbutton called ID_START_STOP, how do I implement this feature ?
Thanks a lot,