DisableProcessWindowsGhosting in C++?
-
My program gives me a problem in XP and XP alone. The main program runs fine, but when I open a form that then runs another thread and some other tasks if the user clicks on the dialog while the tasks are being processed the form won't close after the tasks are complete (as it should). The tasks are all completed correctly except the form won't close. I also get a "Not responding message" in the dialog top bar when the user is clicking on the form. :( I throught maybe i needed to run the DisableProcessWindowsGhosting() function at the beginning of my program, however my program does'nt not seem to recognize that function. I have inclued "winuser.h" as a header. Any thoughts on this, either how to get the DisableProcessWindowsGhosting() to work, or another possible solution. Note: I have also tried the PeekMessage function but this did not work. Cheers* Any help would be greatful :). Debs*