如题

解决方案 »

  1.   

    CWnd::OnSysCommand  
    afx_msg void OnSysCommand( UINT nID, LPARAM lParam );nID
    SC_MINIMIZE (or SC_ICON)   Minimize the CWnd object.
      

  2.   

    void CMoutDlg::OnSysCommand(UINT nID, LPARAM lParam)
    {
    if(nID == SC_MINIMIZE)
    {
              ******
    }
    }
      

  3.   

    不是基于对话框的
    LRESULT CMainFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
    {
    // TODO: Add your specialized code here and/or call the base class
    if(message == WM_SYSCOMMAND)
    if(wParam == SC_MINIMIZE)
                           。
    return CMDIFrameWnd::WindowProc(message, wParam, lParam);