如何才能知道sendmessage的发出的消息是由哪个函数处理呢?
比如
SendMessage(WM_NOTIFY, IDC_TAB1, (long)&nh);
我如何才能得知处理这个消息的函数呢?
谢谢

解决方案 »

  1.   

    在消息映射中找和IDC_TAB1对应的函数就是
      

  2.   

    BEGIN_MESSAGE_MAP
    .....END_MESSAGE_MAP
    之间的部分找
      

  3.   

    CWnd::PreTranslateMessage
    virtual BOOL PreTranslateMessage( MSG* pMsg );Return ValueNonzero if the message was translated and should not be dispatched; 0 if the message was not translated and should be dispatched.ParameterspMsgPoints to a MSG structure that contains the message to process.ResUsed by class CWinApp to translate window messages before they are dispatched to theTranslateMessage andDispatchMessage Windows functions.CWnd Overview |  Class Members |  Hierarchy ChartSee Also   ::TranslateMessage,::IsDialogMessage, CWinApp::PreTranslateMessage