1 2 3 4 5 6 7 8 9 10 11 12
| FormSecondaire.show;
If MBtToujoursVisible.Checked
then Begin
SetWindowPos(FormSecondaire.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE); //en avant plan
SetWindowPos(FormPrincipale.Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE); //mode normal
FormSecondaire.BringToFront;
end
else Begin
SetWindowPos(FormSecondaire.Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE); // mode normal
SetWindowPos(FormPrincipale.Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE); // mode normal
End;
FormPrincipale.Enabled:=false; |
Partager