|
| | Passer une fenêtre en Top Most | |
| |
| Code WinDev | |
| |
|
FenEtat(MoiMême,DessusTout) |
|
| |
| Code C++ | |
| |
| |
| |
| Code VB | |
| |
|
Public Declare Function SetWindowPos Lib "Coredll" (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 //Constantes nécéssaires Const HWND_TOPMOST = -1 Const HWND_NOTOPMOST = -2 Const SWP_NOSIZE = &H1 Const SWP_NOMOVE = &H2 //Procédure eVB Public Sub SetTopmost(ByVal TheForm As Form, ByVal Topmost As Boolean) If Topmost Then Call SetWindowPos(TheForm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE) Else Call SetWindowPos(TheForm.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE) End If End Sub Pour rendre une feuille Topmost, il suffit d'écrire dans sont événement "Load" : Sub Form_Load() Call SetTopMost(me, True) End
Sub
|
|
| |
| Code Java | |
| |
|
frame.setAlwaysOnTop(true);
|
|
| | | | | |
| |
|