DialogBar
-
Iam new to MFC. I have a Dialog Bar having a text box attached to toolbar. When i try to change the value of that text box i get an error - something like unsupported action. When i debugged i came to know that its showing error on UpdateData(TRUE) MY code is class A{ . . . MyDlgBar obj; obj.Value="xxxxxx";// value is a public variable obj.UpdateValue(); . . . } ******** void MyDlgBar::UpdateValue(){ . . SetDlgItemText(IDC_EDIT1,Value); UpdateData(TRUE); . . } Whats the reason for this . . .
-
Iam new to MFC. I have a Dialog Bar having a text box attached to toolbar. When i try to change the value of that text box i get an error - something like unsupported action. When i debugged i came to know that its showing error on UpdateData(TRUE) MY code is class A{ . . . MyDlgBar obj; obj.Value="xxxxxx";// value is a public variable obj.UpdateValue(); . . . } ******** void MyDlgBar::UpdateValue(){ . . SetDlgItemText(IDC_EDIT1,Value); UpdateData(TRUE); . . } Whats the reason for this . . .
Hi, check whether you created the dialogbar using Create() function. MyDlgBar obj; I think the constuctor donot create the window. Best Regards Raj
-
Hi, check whether you created the dialogbar using Create() function. MyDlgBar obj; I think the constuctor donot create the window. Best Regards Raj
-
The dialog bar is being displayed but the above said functionality is not working... (passing a value to the dialog bar)
Proud To Be an Indian
Hi, What the MyDlgBar::DoDataExchange() does?
-
Hi, What the MyDlgBar::DoDataExchange() does?