Hi
I have a dialog window, and inside that an edit control. But when I try to type something in this control it catches like 10 key presses immidiatly. This is my message handler and the window proc for the dialog box:
I don't know if this might be caused by some problems in my code or this just is a common problem.Code:PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); if(!IsDialogMessage(moveObj.hWnd, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } BOOL CALLBACK dlgMoveObjProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { case WM_COMMAND: switch(LOWORD(wParam)) { int something = 0; //This is just something that fills the function up break; } break; default: return false; } return true; }
Thanks in advance
The Wazaa



LinkBack URL
About LinkBacks




