VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Window Manipulation

Joe Estock  (3 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code will show you how to retreive a handle of an open window and how to manipulate that window once you have it's handle.

API Declarations
'Add the following declarations to your form's
'General (Declarations) section
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long

Rate Window Manipulation (3(3 Vote))
Window Manipulation.bas

Window Manipulation Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters