Bmxpunk86pl said:
ok i chilled at a IRC channel for a while and asked this question and some peopel said that I should check out platformsdk ffs, RegisterWindowClass* CreateWindowØ, and SetWindowPos(). Do you guys think that these would do it?
I didnt ask anymore info cuz that was a "special" channel and I didnt wanna sound like a newbie, if you know what I mean so any further help with what is above is greatly appreciated.
Yup that's the one, here's the syntax:
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
example (VB):
Public Const SWP_NOMOVE = 2
Public Const SWP_NOSIZE = 1
Public Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public sub SetTopMostWindow(hwnd As Long, Topmost As Boolean)
If Topmost = True Then 'set to be on top
SetTopMostWindow = SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, _
0, FLAGS)
Else 'set to be regular
SetTopMostWindow = SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, _
0, 0, FLAGS)
End If
End sub