静态函数CWnd:: GetDesktopWindow 返回桌面窗口的指针。

解决方案 »

  1.   

    我想在桌面上移动鼠标到一目录上,
    希望响应一消息如MessageBox.
    怎么做?
      

  2.   

    WM_MOUSEMOVE
    The WM_MOUSEMOVE message is posted to a window when the cursor moves. If the mouse is not captured, the message is posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the mouse. WM_MOUSEMOVE 
    fwKeys = wParam;        // key flags 
    xPos = LOWORD(lParam);  // horizontal position of cursor 
    yPos = HIWORD(lParam);  // vertical position of cursor 
     
    MSDN-------copy!