RE: [pro_vb] RE: Parameters for SetWindowPos Function
Just to say,
A other good way is to use the Regestry.
Because of there you can write and read at the same time without troubles.
No Sync needed and very fast !
cheers Kilian
P.s. Don't forget that the most standard users dont have permissions on HKEY_LOCAL_MACHINE
-----Ursprüngliche Nachricht-----
Von: Peter N. Kipe [mailto:pkipe@c...]
Gesendet: Freitag, 31. Januar 2003 15:32
An: professional vb
Betreff: [pro_vb] RE: Parameters for SetWindowPos Function
Const HWND_TOP = 0
Const HWND_BOTTOM = 1
Const SWP_ASYNCWINDOWPOS = &H4000
Const SWP_HIDEWINDOW = &H80
Const SWP_NOACTIVATE = &H10
Const SWP_NOMOVE = &H2
Const SWP_SHOWWINDOW = &H40
But I've got a question: A couple of responses ago, I supplied complete
instructions for installing the API Viewer add-in for the VB IDE. Weren't
you able to get it installed?
And an observation: I completely agree with Marco's comments in his last
post on this thread.
Pete
-----Original Message-----
From: Tech_Mark [mailto:tek_mark@h...]
Sent: Thursday, January 30, 2003 5:16 PM
To: professional vb
Subject: [pro_vb] Parameters for SetWindowPos Function
Pete was nice enough to provide some of the parameter values for
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Const SWP_NOSIZE = &H1
But how can I find out what the values of the following parameters are?
HWND_BOTTOM HWND_TOP
uFlags:
SWP_ASYNCWINDOWPOS SWP_HIDEWINDOW SWP_NOACTIVATE
SWP_NOMOVE SWP_NOSIZE SWP_SHOWWINDOW
I'm trying to use the "user32" Libraby windows API functions to switch
between an Access.mdb/mde program and an VB6.exe.
I need to do this in a way that the window that moves to the top, or gets
unhidden, gets a message like form_Activated so that I can know to run code
at that time.
If anyone has some better ideas for switching between applications, I'd
certainly be interested.
Thanks
Mark