本帖最后由 hevin163 于 2011-04-02 13:27:30 编辑

解决方案 »

  1.   

    怎么会是另一个应用程序呢?是不是理解错了,感觉他和主窗口脱离了?Create参数1设置一下父窗口为主窗口
      

  2.   


    3Q,我看MSDN的时候还以为第一个参数默认为NULL代表的是主窗口(记忆中好像大都这样),原来是DeskTop!
      

  3.   

    抱歉,我说错了,父窗口是参数2,另外
    pParentWndPoints to the parent window object (of type CWnd) to which the dialog object belongs. If it is NULL, the dialog object’s parent window is set to the main application window.然后这确实不是两个应用程序,都是一个进程里创建的