Hi!
Who can help me?
I am using CreateProcess - (Creation flag=NORMAL_PRIORITY_CLASS, Start flag = STARTF_USESHOWWINDOW, and NormalFocus) - and WaitForSingleObject - (INFINITE) - to start another application (for this example: Notepad)
Everything works fine and the program starts and exits with no problems, and while running, the calling application is suspended as it should be.
However, after Notepad is up and running, if the user moves the Notepad window around, then it does one or two funny things:
After moving it, it may leave a copy of the window, where it was previously located, on the screen, (and each movement causes an additional copy to be left), or it will leave on white space on the calling application, or it will do both.
The white space caused from the window not repainted is only on the calling application's window (not the desktop or another application), and the copies of the Notepad window left on the screen could be anywhere and everywhere.
It doesn't matter if the calling app. is maximized or reduced, and same for Notepad.
So I figured it had to do with it running from the IDE and created and ran the exe. The problem of having muliple copies all over the screen stopped happening for the most part, but the white space problem on the calling application is still happening - well, it is a white space on XP and a copy of the Notepad window on W2000.
Anyone seen this before and/or knows how to correct it?
Many thanks!
Who can help me?
I am using CreateProcess - (Creation flag=NORMAL_PRIORITY_CLASS, Start flag = STARTF_USESHOWWINDOW, and NormalFocus) - and WaitForSingleObject - (INFINITE) - to start another application (for this example: Notepad)
Everything works fine and the program starts and exits with no problems, and while running, the calling application is suspended as it should be.
However, after Notepad is up and running, if the user moves the Notepad window around, then it does one or two funny things:
After moving it, it may leave a copy of the window, where it was previously located, on the screen, (and each movement causes an additional copy to be left), or it will leave on white space on the calling application, or it will do both.
The white space caused from the window not repainted is only on the calling application's window (not the desktop or another application), and the copies of the Notepad window left on the screen could be anywhere and everywhere.
It doesn't matter if the calling app. is maximized or reduced, and same for Notepad.
So I figured it had to do with it running from the IDE and created and ran the exe. The problem of having muliple copies all over the screen stopped happening for the most part, but the white space problem on the calling application is still happening - well, it is a white space on XP and a copy of the Notepad window on W2000.
Anyone seen this before and/or knows how to correct it?
Many thanks!