TAB中怎么修改其他页的控件内容在页1按钮单击来修改其他页控件内容
不是在窗口启动的时候修改,所以不能再OnInitDialog中改

解决方案 »

  1.   

    通过他们公共的父窗口CTabCtrl控件来中转
      

  2.   


    在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)