情形1:添加了一个对话框,并关联了一个类 CTestDlg(派生于CDialog)!    然后对话框上有一个控件,然后关联了一个类CMostDlg(派生于CButton), 然后在CMostDlg中添加了一个WM_MOUSEMOVE的响应函数!   想问的是:这个WM_MOUSEMOVE 消息路由是怎么回事的?    能给我剖析一下吗? 谢谢!情形2:还是一个对话框相关类CTestDlg,对话框上有一个CButton的空间 响应点击,  请问当我点击这个控件消息的传递情况?
此时产生的是通告消息吗?   我看了其他的一些文章, 上面说对话框有另外一个消息循环叫:RunModalLoop!  
  解释一下!

解决方案 »

  1.   

    消息泵
    http://www.pconline.com.cn/pcedu/empolder/gj/vc/0405/384759.html
      

  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.A window receives this message through its WindowProc function. 
      

  3.   

    F11进入CDialog::DoModal()函数中看看就比较清楚了
      

  4.   

    http://www.vckbase.com/document/viewdoc/?id=1898