主程序是文档/视图结构;视图基类是CFormView
如何把在DLL中定义的视图帖到主程序的视图上

解决方案 »

  1.   

    这个方法很多啊。比如把DLL视图做为一个刷子。返回到你当前的视图上
      

  2.   

    SetWindowPos
    The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. BOOL SetWindowPos(
      HWND hWnd,             // handle to window
      HWND hWndInsertAfter,  // placement-order handle
      int X,                 // horizontal position
      int Y,                 // vertical position
      int cx,                // width
      int cy,                // height
      UINT uFlags            // window-positioning options
    );