這個優點奇怪,原來選擇事件是以WM_COMAND 發送的。忙活半天,靠。
The CBN_SELCHANGE message is send with WM_COMMAND where as TVN_SELCHANGED was with WM_NOTIFY. That why we have to use NOTIFY_HANDLER for handling the TVN_SELCHANGED. So if you want to handle the CBN_SELCHANGE, the macro to be used is COMMAND_HANDLER
COMMAND_HANDLER( IDC_UPDATEDAY, CBN_SELCHANGE , OnSelChanges )
and the proto of OnSelChanges should be
LRESULT OnSelChanges(WORD wNotifyCode,WORD wID,HWND hWndCtl,BOOL& bHandled );
posted on 2009-02-12 17:17
megax 閱讀(152)
評論(0) 編輯 收藏 引用