title image


Smiley Re: Bestimmte Einstellung zu Window-State gesucht
Hi,



das ist die Topmost Einstellung der ZOrder.





Private Const HWND_TOPMOST = -1

Private Const HWND_NOTOPMOST = -2

Private Const SWP_NOMOVE = &H2

Private Const SWP_NOSIZE = &H1

'

Private 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

'

Private Sub SetTopMost(ByVal hWnd As Long, ByVal nTop As Boolean)

Dim nFlag As Long

nFlag = IIF(nTop, HWND_TOPMOST, HWND_NOTOPMOST)

SetWindowPos hWnd, nFlag, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE

End Sub



den Code in die Form (oder Modul).



SetTopMost Me.hwnd, True


Programmierst Du noch frei oder wirst Du schon von Microsoft verwaltet ( .NET)?



geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: