On-Screen Keyboard
-
Hi all, Instead of creting the buttons if i drag and drog the buttons and make them ownerdraw on the dialog box and and try to sendthe messages to the background applications the sequence in which the keystroke generate shold be WM_KEYDOWN ->WM_CHAR->WM_KEYUP but its coming as WM_KEYDOWN->WM_KEYUP-> WM_CHAR for me for the following code can any one help me void MyDialog::GenerateKeyStroke(UINT nVirtualKeyCode) { CMainWindow *pView= (CMainWindow*)GetParent(); LPARAM lParam; lParam = MapVirtualKey(nVirtualKeyCode, 0) ; //scan code are from 16-23 in lparam lParam <<= 16; //since repeat count is one lParam++; pView->PostMessage(WM_KEYDOWN , nVirtualKeyCode , lParam ) ; lParam |= 0xC0000000; Sleep(0); pView->PostMessage(WM_KEYUP , nVirtualKeyCode , lParam ) ; } and I shold use only PostMessage can any one help adn if press Alt key System keyevents should generate for me what should i do for that Request to all to continue this