I made a application consisting of a borderless nomoveable window wich I want to always stay behind all other applications.
The idea is to make it behave as part of the desktop.
The code I use is as follows:
Declare Function SetWindowPos Lib "user32" (ByVal hWnd As Integer, ByVal hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer
Global Const HWND_TOPMOST = -1
Global Const HWND_NOTOPMOST = -2
Global Const HWND_BOTTOM = 1
Global Const HWND_DESKTOP = 0
In form declaration:
On every object and event
Success% = SetWindowPos(frmMain.hWnd, HWND_BOTTOM, 0, 0, 0, 0, Flags)
This works, but not as if the program was part of the desktopp.
Sometimes it pops to the front when I start other programs like
Novell NDS Manager.
Other times when I drag the scrolbar on a textbox on the application it pops to the front.
What does the HWND_DESKTOP do?
Is there another way to get the effect I am looking for?