能力值:
( LV2,RANK:10 )
|
-
-
2 楼
WM_RBUTTONDOWN在模拟器里好像有点问题
我一般都是用WM_CONTEXT_MENU
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
模拟器里面就这样。当鼠标没有按下时WM_MOUSEMOVE也没有
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
那是不是连接了设备之后消息响应就正常了呢?
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
WIN CE 6.0 是不支持右键的的,win32中,如果你想右键弹出菜单可以这样做,MFC中还有其他方式!
在鼠标左键消息里这样处理,
#ifdef _WIN32_WCE
SHRGINFO shrg;
shrg.cbSize = sizeof(SHRGINFO);
shrg.hwndClient = m_hMainWnd;
shrg.ptDown.x = pt.x;
shrg.ptDown.y = pt.y;
shrg.dwFlags = SHRG_RETURNCMD;
if(::SHRecognizeGesture(&shrg) == GN_CONTEXTMENU) //长按键消息,相当于右键
{
ClientToScreen(m_hMainWnd, &pt);
HMENU hMenu=LoadMenu(m_hInstance, LPTSTR(IDR_POPUP_MENU));
TrackPopupMenu( GetSubMenu(hMenu, 0),
TPM_TOPALIGN ,
pt.x, pt.y,
0, m_hMainWnd,
NULL
);
}
else
{
// 处理真正的左键消息
}
#endif
|
|
|