PDA

Click to See Complete Forum and Search --> : api question (resloution i thnk)


Crazy D
Jan 4th, 2000, 12:54 AM
You want to make an application toolbar as if i believe that's the correct name... just like the taskbar, or the office toolbar...
I believe there are 100s of postings about that earlier.. i've seen a sample a while ago which was ready to use... forgot the name though :-( contained both vb and delphi code... search for appbar I think.... here and/or at the codegure site....

KENNNY
Jan 4th, 2000, 01:55 AM
yeah thats what i need beholder!
anyway ill search for appbar now
taskbar and toolbar came up with nothing

------------------
cintel rules :p
www.cintelsoftware.co.uk

the beholder
Jan 4th, 2000, 11:07 AM
i want to make a program that will be always be ontop and when another program is launched and its' window is maximized
the size of its' window will be in the screen size without the form of my program.

eg: when icq is sticked to the side of the screen' and you run intrenet explorer and maxmize ie's window.

Jan 4th, 2000, 11:16 AM
Try this code... Works for me...


'Put this in your bas module...
Option Explicit

'Constants for topmost.
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_NOACTIVATE = &H10
Public Const SWP_SHOWWINDOW = &H40
Public Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE

Public Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (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

'--end block--'


'Put this on the form that needs to stay on top.

Option Explicit

Private Sub Form_Load()

'typically called in the form load
Call SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)

End Sub



I got this from somewhere, whish I knew where. Worked great for me... :)

------------------
John T. Mieske
Star Trek LCARS programmer

Knight Vision Enterprises
kvision@gate.net


[This message has been edited by Knight_Vision (edited 01-04-2000).]

the beholder
Jan 4th, 2000, 11:53 AM
first of all thanks for ansering but this is
not what i was looking for this is only the
ontop modle which i alredy have i want to make a prog that will move that will change the resloution of the working space like icq
run icq and see when u put it in the right side and u run internet explorer and u maxmize its change its width so u will see internet explorer and icq