SendDlgItemMessage(IDC_EDIT1,WM_GETTEXT,10,(LPARAM)ch1);我发送一个这样的消息给系统,但我并没有设置接收WM_GETTEXT的消息响应函数,为什么会实现得到IDC_EDIT1编辑框的值??

解决方案 »

  1.   

    The DefWindowProc function copies the text associated with the window into the specified buffer and returns the number of characters copied.
      

  2.   

    是不是就是说DefWindowProc这个函数有对消息的默认处理??
    我们也可能重写这个函数让他按照自己的意愿进行消息响应?
      

  3.   

    应该可以,这个要多看看windows消息机制By default, DefWindowProc calls the CallWindowProc Win32 function to send the message information to the window procedure specified in m_pfnSuperWindowProc.