Hi,
I have made a button, when pressed program should activate some shortcuts. I am using the GetAsyncKeyState function to find out what button is pressed. But where should I put this, currently I have put it this way, but when activated the GUI stops responding untill the shortcut button has pressed:
Any info about how I can fix this is welcome,Code:BOOL CALLBACK DialogProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_COMMAND: switch (LOWORD(wParam)) { case IDC_ACTIVATE: while(1) { while(!GetAsyncKeyState(vKey)) Sleep(50); /* Do Stuff.. */ break; } break; } break; return 0; }
apsync
[edit]I am using Windows XP as OS and VC++6 as compiler[/edit]



LinkBack URL
About LinkBacks


