Recent content by Alex Sokolek

  1. Alex Sokolek

    Windows 11 PeekMessage() not returning WM_KEYDOWN message

    This problem has been resolved. The solution involved replacing "PeekMessage(&msg, hWnd, WM_KEYFIRST, 0, 0, PM_REMOVE)" with "PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)". The reason I did not think it was the solution before was that I was also throwing an access exception (in a different part of...
  2. Alex Sokolek

    Windows 11 PeekMessage() not returning WM_KEYDOWN message

    "ChatGPT" 1. I checked. VK_ESCAPE is 0x1B and WM_KEYDOWN is 0x0100. 2. I tried TranslateMessage(). It did not help. Besides, the docs say that TranslateMessage() directly sends the translated messages to the Windows Procedure. 3. I don't think GetMessage() would work. It does not return until...
  3. Alex Sokolek

    Windows 11 PeekMessage() not returning WM_KEYDOWN message

    "ChatGPT" 1. I tried PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) and that did not help. 2. I could understand that, if the priority of WM_PAINT vs WM_KEYDOWN were reversed. If this were the issue, I would expect that WM_KEYDOWN would have priority over WM_PAINT. Besides, I have another program...
  4. Alex Sokolek

    Windows 11 PeekMessage() not returning WM_KEYDOWN message

    Hi. I'm having trouble with PeekMessage(). I use PeekMessage() in a loop inside my WM_PAINT procedure to consume messages generated during a long computation process, and to allow the user to abort the process by pressing ESCAPE. Here is a snippet of my code... ... Create several threads to do...
  5. Alex Sokolek

    Mouse cursor being duplicated

    I disabled the mouse pointer trails. That solved my problem. That's a shame, because I used the trails to help me find the cursor. Anyway, thanks.
  6. Alex Sokolek

    Sound is delayed

    Hi. I'm having a problem with audio. There is a constant one second delay between the time MessageBeep() is called and the moment the sound is heard. I checked my audio drivers. They are current. I have Windows 11 23H2. Any ideas? Thank you.
  7. Alex Sokolek

    Mouse cursor being duplicated

    Hi. I have an intermittant problem with my mouse cursor. When I open and/or close a window, the cursor gets duplicated, up and to the left, about 1 centimeter away from the original cursor. I checked my video and mouse drivers. They are current. I also checked the settings of the mouse pointer...
  8. Alex Sokolek

    Multi-Threading, Visual Studio, and Breakpoints.

    Thank you. That helps.
  9. Alex Sokolek

    Multi-Threading, Visual Studio, and Breakpoints.

    This is a repost, now that ChatGPT is working again... Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio. I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the...
  10. Alex Sokolek

    This is a test to see if ChatGPT is still broken

    This is a test to see if ChatGPT is still broken.
  11. Alex Sokolek

    Multi-threading, Visual Studio, and Breakpoints

    Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio. I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the next instruction, the debugger goes back to the original...
  12. Alex Sokolek

    Update of 3-26-2024

    Do you know the end date for 23H2?
  13. Alex Sokolek

    A strange problem with modeless dialog boxes - V2

    I don't think that's the answer. This is because the program works fine if I run with the debugger, F5, but it does not work fine if I run without the debugger, Ctrl-F5. I would expect the function to be the same for each case, but it's not. Besides, the dialog box procedure does not process...
  14. Alex Sokolek

    A strange problem with modeless dialog boxes - V2

    I have solved the problem! See the original post, "A strange problem with modeless dialog boxes", for details. This is a repost, incorporating the latest simplifications of the problem statement, and a minimal reproducible example of the code... I'm having a problem with modeless dialog boxes...
  15. Alex Sokolek

    A strange problem with modeless dialog boxes

    Yet another observation... It takes five seconds for the dialog box to freeze and the cursor and "X" button to change. It does not matter how many files are in the directory to scan, or how much delay I add to each iteration of the loop - its always five seconds. I'm thinking that Windows is...
Back
Top