wm_notify 消息在什么时候可用

解决方案 »

  1.   

    Common controls are child windows that send notification messages to the parent window when events, such as input from the user, occur in the control.The application relies on these notification messages to determine what action the user wants it to take. Most common controls send notification messages as WM_NOTIFY messages. Windows 3.x controls send most notification messages as WM_COMMAND messages. CWnd::OnNotify is the handler for the WM_NOTIFY message. As with CWnd::OnCommand, the implementation of OnNotify dispatches the notification message to OnCmdMsg for handling in message maps. The message-map entry for handling notifications is ON_NOTIFY. Alternately, a derived class can handle its own notification messages using "message reflection."
      

  2.   

    WM_NOTIFY用于通知父窗口例如Click,DbClick,char等消息