I am using VB6 (+ SP5) to make a program.
I 'm using main EXE file that calls a DLL file.
When I'm calling the DLL file I show Full screen form and on the top of it a
small dialog form.
after the user click on OK button, i need to hide the two screens of the DLL
and to show again the main screen of the EXE file.
when I use the method: "hide" for the two forms of the DLL , I can see the
main screen of the EXE file on the back and non-active (grey) look of the two
screens of the DLL for few seconds until I can clearly see the main screen
of the EXE file again.
Is there a API function that I can use that can refresh the Whole screen
again and display the main screen of the EXE clearly again almost in no time?
Regards
===============
Avi Cohen
A.D.V. Ltd.
===============
Adrian Enders - 23 Dec 2004 17:33 GMT
Possibly. There is an API called "EnableWindow". Although you will have to
pass in the window handle.
Declare Function EnableWindow Lib "user32" Alias "EnableWindow" (ByVal hwnd
As Long, ByVal fEnable As Long) As Long
· hWnd
Identifies the window to be enabled or disabled.
· bEnable
Specifies whether to enable or disable the window. If this parameter is
TRUE, the window is enabled. If the parameter is FALSE, the window is
disabled.
HTH
Adrian
> I am using VB6 (+ SP5) to make a program.
> I 'm using main EXE file that calls a DLL file.
[quoted text clipped - 15 lines]
> A.D.V. Ltd.
> ===============