儲存庫 vbox 的更動 11995
- 時間撮記:
- 2008-9-2 下午03:58:23 (16 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox4
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox4/include/QIHotKeyEdit.h
r9820 r11995 77 77 78 78 #if defined (Q_WS_WIN32) 79 bool winEvent (MSG * msg);79 bool winEvent (MSG *aMsg, long *aResult); 80 80 #elif defined (Q_WS_PM) 81 81 bool pmEvent (QMSG *aMsg); -
trunk/src/VBox/Frontends/VirtualBox4/src/QIHotKeyEdit.cpp
r11204 r11995 533 533 #if defined (Q_WS_WIN32) 534 534 535 bool QIHotKeyEdit::winEvent (MSG * msg)536 { 537 if (!( msg->message == WM_KEYDOWN || msg->message == WM_SYSKEYDOWN ||538 msg->message == WM_KEYUP || msg->message == WM_SYSKEYUP ||539 msg->message == WM_CHAR || msg->message == WM_SYSCHAR ||540 msg->message == WM_DEADCHAR || msg->message == WM_SYSDEADCHAR ||541 msg->message == WM_CONTEXTMENU))535 bool QIHotKeyEdit::winEvent (MSG *aMsg, long* /* aResult */) 536 { 537 if (!(aMsg->message == WM_KEYDOWN || aMsg->message == WM_SYSKEYDOWN || 538 aMsg->message == WM_KEYUP || aMsg->message == WM_SYSKEYUP || 539 aMsg->message == WM_CHAR || aMsg->message == WM_SYSCHAR || 540 aMsg->message == WM_DEADCHAR || aMsg->message == WM_SYSDEADCHAR || 541 aMsg->message == WM_CONTEXTMENU)) 542 542 return false; 543 543 544 544 /* ignore if not a valid hot key */ 545 if (!isValidKey ( msg->wParam))545 if (!isValidKey (aMsg->wParam)) 546 546 return false; 547 547 … … 549 549 LogFlow (("%WM_%04X: vk=%04X rep=%05d scan=%02X ext=%01d" 550 550 "rzv=%01X ctx=%01d prev=%01d tran=%01d\n", 551 msg->message, msg->wParam,552 ( msg->lParam & 0xFFFF),553 (( msg->lParam >> 16) & 0xFF),554 (( msg->lParam >> 24) & 0x1),555 (( msg->lParam >> 25) & 0xF),556 (( msg->lParam >> 29) & 0x1),557 (( msg->lParam >> 30) & 0x1),558 (( msg->lParam >> 31) & 0x1)));559 #endif 560 561 if ( msg->message == WM_KEYDOWN || msg->message == WM_SYSKEYDOWN)551 aMsg->message, aMsg->wParam, 552 (aMsg->lParam & 0xFFFF), 553 ((aMsg->lParam >> 16) & 0xFF), 554 ((aMsg->lParam >> 24) & 0x1), 555 ((aMsg->lParam >> 25) & 0xF), 556 ((aMsg->lParam >> 29) & 0x1), 557 ((aMsg->lParam >> 30) & 0x1), 558 ((aMsg->lParam >> 31) & 0x1))); 559 #endif 560 561 if (aMsg->message == WM_KEYDOWN || aMsg->message == WM_SYSKEYDOWN) 562 562 { 563 563 /* determine platform-dependent key */ 564 mKeyVal = qi_distinguish_modifier_vkey ( msg->wParam);564 mKeyVal = qi_distinguish_modifier_vkey (aMsg->wParam); 565 565 /* determine symbolic name */ 566 566 TCHAR *str = new TCHAR [256]; 567 if (::GetKeyNameText ( msg->lParam, str, 256))567 if (::GetKeyNameText (aMsg->lParam, str, 256)) 568 568 { 569 569 mSymbName = QString::fromUtf16 (str);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器