posts - 76,  comments - 621,  trackbacks - 0
这个优点奇怪,原来选择事件是以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 阅读(134) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理