Home > Back-end >  MFC in other function declared in a window class why the window handle of the class is NULL
MFC in other function declared in a window class why the window handle of the class is NULL

Time:09-28

MFC in other function declared in a window class why the window handle of the class is NULL



Trouble, help to take a look at ah, I feel that my grammar is no problem whether class declarations or the new a class is the same error

CodePudding user response:

You that is a local variable, the function will be gone

CodePudding user response:

You that is a local variable, the function will be gone

CodePudding user response:

You go to search the modal dialog box and the modal dialog box


Modal dialog box:
 

CXXXDlg DLG.//declare objects

//here is not to operate interface, because didn't create interface, only a member variable operation, if there is a need to have any interface Settings, can only be conserved as member variables to
//DLG. YYY=z

If (DLG) DoModal ()==IDOK) {//DoModal to create dialog interface resources, to handle interface, interface initialization operation need heavy sectional CDialog virtual function OnInitialDialog () to deal with,

}
  • Related