Home > Software engineering >  VS2015 MFC environment, property page dialog box CPropertyPage to invoke a modal dialog box appears
VS2015 MFC environment, property page dialog box CPropertyPage to invoke a modal dialog box appears

Time:09-24



Property page dialog box
The class CSatellite: public CPropertyPage
A modal dialog box
The class CTrackDataList: public CDialogEx
Property page dialog box to invoke a modal dialog box appears above the ghosting, could you tell me how to solve?
 void CSatellite: : OnBnClickedorbit ()//button event pop-up non-modal dialog 
{
//TODO: add the control notification handler code
CTrackDataList * trackdatalist_=new CTrackDataList (this);

If (trackdatalist_ - & gt; GetSafeHwnd ()==0)
{
Trackdatalist_ - & gt; Create (IDD_TRACKDATA_LIST);
}
Trackdatalist_ - & gt; ShowWindow (SW_SHOW);

}

CodePudding user response:

Should be another CPropertyPage CTrackDataList

CodePudding user response:

reference 1st floor schlafenhamster response:
CTrackDataList should be another CPropertyPage

In VS2010 CPropertyPage calling a modal dialog box will not have a double problem, and in the vs2015 CPropertyPage to invoke a modal dialog box, the dialog style attribute must be a child, can't be a Popup, the vs2015 changes method or am I wrong?
  • Related