Always On Top In Win95/VB4 32bit 
Author Message
 Always On Top In Win95/VB4 32bit

The Win API call SetWinPos I used for "Always On Top" does not seem to
function the same in Windows95/VB4 than Win3.11/VB3.  Can anyone help
me with some sample VB4 code to accomplish this function for a form
(and of course the antidote)

Thanks in anticipation.
David Kuchmar



Sun, 19 Jul 1998 03:00:00 GMT  
 Always On Top In Win95/VB4 32bit
Quote:

> The Win API call SetWinPos I used for "Always On Top" does not seem to
> function the same in Windows95/VB4 than Win3.11/VB3.  Can anyone help
> me with some sample VB4 code to accomplish this function for a form
> (and of course the antidote)
>It ought to be the same as in VB3, except that if you're writing a

32-bit app, you need the 32-bit Declare:

Declare Function SetWindowPos Lib "User32" (ByVal hWnd As Long, ByVal
hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal CX As
Long, ByVal CY As Long, ByVal wFlags As Long) As Long

Simple, huh!

--
<:) Jeff Law
DataMasta Limited, Mt Maunganui, NZ



Mon, 20 Jul 1998 03:00:00 GMT  
 Always On Top In Win95/VB4 32bit
: The Win API call SetWinPos I used for "Always On Top" does not seem to
: function the same in Windows95/VB4 than Win3.11/VB3.  Can anyone help
: me with some sample VB4 code to accomplish this function for a form
: (and of course the antidote)
:
: Thanks in anticipation.
: David Kuchmar
:
     I found that my AOT form would no longer be AOT if I put a second
AOT form on it (if I moved the MS Clock on to it, and then off again, for
instance).  This only occured in the VB4 editing environment tho.  AFter
I compiled it and ran the EXE it behaved properly even after being
overlapped by the Clock.  

     I burned a couple of hours chasing this problem in the environment
though (grumble!).

     And goddam GetFocus() is a disaster in NT.  (btw)  I forgot to
update that call in one part of my code and I had radio-buttons jumping
higgley-piggley all over the damn form.  harumph.




Mon, 20 Jul 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Always on top in Win95 w/ VB 4.0

2. Connecting 2 Win95 PC via VB4 32bit?

3. VB4-32bit/Win95 Oracle ODBC problems.

4. win95, vb4 pro 32bit, sybase 10, intersolv odbc, addchunk (image blobs)

5. Icon for "ShowInTaskbar", VB4, Win95 (32bit)

6. VB4 32bit Win95 Screensaver

7. Help: Accessing Dial-Up Networking profiles in Win95 (VB4 32bit)

8. Help: Accessing Dial-Up Networking profiles in Win95 (VB4 32bit)

9. Always On Top in VB4 ?

10. VB4.0 Always on top

11. VB4: Always on top?

12. VB4 and "always on top" window

 

 
Powered by phpBB® Forum Software