- 216 名前:176 mailto:sage [2007/12/18(火) 18:48:51 ]
- こんな感じです
BOOL ***Dlg::PreTranslateMessage(MSG* pMsg) { INT_PTR nChar; if( pMsg->message == WM_KEYDOWN ) { nChar = pMsg->wParam; switch( nChar ){ case VK_NUMPAD0 : // 0 キー nChar = pMsg->wParam; child.SetCode( nChar ); child.DoModal(); case VK_NUMPAD1 : // 1 キー nChar = pMsg->wParam; child.SetCode( nChar ); child.DoModal(); case VK_NUMPAD2 : // 2 キー nChar = pMsg->wParam; child.SetCode( nChar ); child.DoModal(); } return CDialog::PreTranslateMessage(pMsg); } return 0; }
|

|