According to need, to create a graphic mapping dialog box, and need it in the main dialog displays, so with create a dialog box displays it in the main dialog box, in the main dialog implementation code is as follows:
Void CDIBtDlg: : Paint_Drawing ()
{
Subdlg=new CPaint_DrawDlg ();
Subdlg - & gt; Create (IDD_PAINT_DRAW_DIALOG, this);
Subdlg - & gt; MoveWindow (316, 30, 420, 210);
Subdlg - & gt; ShowWindow (SW_SHOW);
}
Some controls need to input data in the main dialog box, so want to use the UpdateData (true), but once you click the button, the input data instantly gets stuck, no reaction,
There is also a kind of situation is that, in the main dialog call other dialog box, also can appear similar problems, stuck, without any error message,
Call other dialog code like this:
Void CDIBtDlg: : OnIndata ()
{
//TODO: Add your the control notification handler code here
CINDATA mDlg;
MDlg. DoModal ();
}
I wonder, is it because in the main dialog box dialog box embedded in the plot, does not support the UpdateData (true) to refresh, is the mapping dialog here also become controls?
For everyone a great god help!
Thank you very much!
CodePudding user response:
Paint_Drawing is where this work? In the OnPaint?CodePudding user response:
Debugging can be sent to me?