Changing Button Text
Does someone know how to change the text of a button on a form, from the code. I tried using the CButton control variable but could not do it. Can someone help me on this.
# 1 Re: Changing Button Text
You Can use CWnd::SetWindowText( LPCTSTR lpszString ).
for example:
GetDlgItem(IDOK)->SetWindowText("Hello");
sm_ch at 2007-11-10 8:54:13 >

# 2 Re: Changing Button Text
Use the CButton variable just like started to. Then when you call your member vairable you do like so.
m_ButtonVar.SetWindowText("YouTestHere");