请问怎样把对话框显示在view上?例如把关于对话框显示在VIEW上的某个位置

解决方案 »

  1.   

    使用FormView。
    View最后一步选择从FormView派生
      

  2.   

    用CFormView,然后就可以直接把控件放进去
      

  3.   

    CFormView::CFormView
    These constructors create an instance of a CFormView object and identify the dialog box resource on which the view is based in one of the following ways: Pass a string as the parameter to the constructor to identify the resource by name. 
    Pass an unsigned integer as the parameter to the constructor to identify the resource by identifier. 
    CFormView(
    LPCTSTR lpszTemplateName ); CFormView(
    UINT nIDTemplate ); 
      

  4.   

    1) CFormView也可以动态创建. 以你的View为父窗口创建CFormView:class CMyFormView : public CFormView
    {
      ...
    };
    int CMyView::OnCreate(...)
    {
        CMyView::OnCreate();    m_formview.Create(NULL, NULL, WS_CHILD|WS_VISIBLE, 
    }