想模拟系统菜单中的"移动","大小","最小化","最大化"....
还望能得知是用哪几个消息实现的!

解决方案 »

  1.   

    你在窗口左上角的图标左键点一下,弹出来的就是。
    WM_RESTORE,WM_CLOSE,...
      

  2.   

    wm_move
    wm_size
    wm_syscommand SC_MAXIMIZE SC_MINIMIZE
      

  3.   

    消息:
    wm_move
    wm_size
    wm_syscommand SC_MINIMIZE SC_MAXIMIZE
      

  4.   

    SC_CLOSE   Close the CWnd object. 
    SC_HOTKEY   Activate the CWnd object associated with the SC_KEYMENU   Retrieve a menu through a keystroke. 
    SC_MAXIMIZE (or SC_ZOOM)   Maximize the CWnd object. 
    SC_MINIMIZE (or SC_ICON)   Minimize the CWnd object. 
    SC_MOUSEMENU   Retrieve a menu through a mouse click. 
    SC_MOVE   Move the CWnd object. 
    SC_NEXTWINDOW   Move to the next window. 
    SC_PREVWINDOW   Move to the previous window. 
    SC_RESTORE   Restore window to normal position and size. 
    SC_SCREENSAVE   Executes the screen-saver application specified in 
    SC_SIZE   Size the CWnd object. 
    SC_TASKLIST   Execute or activate the Windows CE Task Manager 
      

  5.   

    WM_SYSCOMMAND 消息:
    wParam = SC_CLOSE SC_MAXIMIZE SC_MINIMIZE SC_MOVE SC_RESTORE SC_SIZE