For help, MFC modal dialog box a flash animation program
Time:10-07
Click on the button on the function of the program is the modal dialog box, now run as a result, flash modal dialog box is hide behind the main dialog box, the main dialog also what all points not like feign death
void CTraction: : OnBnClickedBtnCalc () { //TODO: Add your the control notification handler code here CCompensationChain DLG. DLG. DoModal (); }
Tried to put objects in the class definition, and in OnInitDialog () to add: : SetWindowPos (this - & gt; M_hWnd, HWND_TOPMOST, 1, 1, 1, 1, SWP_NOMOVE | SWP_NOSIZE); Function to use, a great god ~
CodePudding user response:
CCompensationChain onInitxxx function in this dialog box class, try to set the dialog to the top window.