用鼠标左键按住对话框的标题栏,然后拖动整个对话框,这个事件是哪个?
谢谢!

解决方案 »

  1.   

    WM_LBUTTONDOWN/WM_LBUTTONUP/WM_MOUSEMOVE事件里写拖动代码
      

  2.   

    还有这个WM_NCHITTEST
    http://www.vckbase.com/document/viewdoc/?id=464
      

  3.   

    按住标题栏 WM_LBUTTONDOWN/WM_LBUTTONUP/WM_MOUSEMOVE 是不响应的,非客户区啊WM_NCxxx才是啊,呵呵
      

  4.   

    PostMessage(hWnd,WM_NCLBUTTONDOWN, HTCAPTION, NULL);
      

  5.   

    是WM_NCHITTEST消息,在处理时返回 HTCAPTION,表示正在进行拖动对话框标题栏的操作
      

  6.   

    to SoLike(思危) ,
    你能举个例子吗?写点伪代码吗?
    处理时候返回 HTCAPTION是什么意思?
      

  7.   

    鼠标在对话框标题栏移动都会发送WM_NCHITTEST消息
    The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent to the window that has captured the mouse. 
    楼主是想要实现什么功能?