Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / December 2004



Tip: Looking for answers? Try searching our database.

Refreshing the EXE screen after moving the focus from DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adv@hclick.co.il - 23 Dec 2004 15:51 GMT
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.
> ===============
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.