在TAB 页1中CWnd* pParent = GetParent()->GetParent();就可以得到MyDialog对话框类的CWnd*指针了。 pParent->函数; 函数里向TAB控件页2修改了控件内容这样写会报告下面错误: Program: F:\\XXXX\XXX\Debug\XXX.exe File: f:\dd\vctools\vc7libs\ship\atlmfc\include\afxcmn.inl Line: 171For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.(Press Retry to debug the application)
在TAB 页1中CWnd* pParent = GetParent()->GetParent();就可以得到MyDialog对话框类的CWnd*指针了。 pParent->函数; 函数里向TAB控件页2修改了控件内容这样写会报告下面错误:
Program: F:\\XXXX\XXX\Debug\XXX.exe
File: f:\dd\vctools\vc7libs\ship\atlmfc\include\afxcmn.inl
Line: 171For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.(Press Retry to debug the application)