Editing a TextBox.
Posted on 1998-11-26
ok, I have a text box (IDC_TEXT1) on the main dialog box named CZDSpcDlg
and I made a variable (CEdit buttontext;) in Public.
and I did the DoDataExchange (DDX_Control(pDX, IDC_TEXT1, buttontext);
I can edit the text box in the same class like this :
but when I try to edit the text from a different class, (eg:CMFCDDEServer) like this:
it doesn't change the text in the box!! it doens't cause an error when compiling.. and I know that I'm calling that part cause I even tried making a MessageBox(0,"hehe","hehe",MB_OK);
and it worked fine.. but it just won't change the text of that text box from a different class.
can ANYONE help me out!?!?