我在对话框的 OnInitDialog 里调用
::ShowWindow(this->m_hWnd,SW_HIDE); 
为什么无法隐藏对话框
该怎么做
谢谢

解决方案 »

  1.   

    在msdn里找了几个showwindow,都没有第一个参数
    CWnd::ShowWindow
    BOOL ShowWindow( int nCmdShow );CWindow::ShowWindow
    BOOL ShowWindow( int nCmdShow );
      

  2.   

    to ouyh12345() 
    我用的是 API
      

  3.   

    使用对话框编辑器改变“visible”属性
      

  4.   

    OnInitDialog 的时候: WINDOWPLACEMENT wp;
    wp.length = sizeof(WINDOWPLACEMENT);
    wp.flags = WPF_RESTORETOMAXIMIZED;
    wp.showCmd = SW_HIDE;
    SetWindowPlacement(&wp);