现在的位置: 首页 > 综合 > 正文

smartphone应用程序界面,ListBox和TreeView控件不能接受Action button消息的问题

2013年10月09日 ⁄ 综合 ⁄ 共 288字 ⁄ 字号 评论关闭

需要Hook这些控件的窗口过程函数!

LRESULT CALLBACK pNewListBoxProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { switch (uMsg) { case WM_GETDLGCODE: return DLGC_WANTMESSAGE; ??? case WM_KEYDOWN: switch(wParam) { ??????case 13: //Action Button 响应 ? break; } break; } return CallWindowProc(pOldListBoxProc, hwnd, uMsg, wParam, lParam); }

抱歉!评论已关闭.