PDA

Visualizza versione completa : [VB6] domandina per campioni


xegallo
14-05-2002, 21.32.02
come diavolo faccio a ripristinare un form mdi child precedentemente ridotto a icona al verificarsi di un determinato evento?
sapendo che:

io ho questo tipo di dati e ho chiamato le seguenti API

Public 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
Public Const SW_MINIMIZE = 6
Public Rectan As RECT
Type POINTAPI
X As Long
Y As Long
End Type
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Public Type WINDOWPLACEMENT
Length As Long
flags As Long
showCmd As Long
ptMinPosition As POINTAPI
ptMaxPosition As POINTAPI
rcNormalPosition As RECT
End Type
Declare Function ClientToScreen Lib "user32" _
(ByVal hwnd As Long, lpPoint As POINTAPI) As Long
Declare Function GetWindowPlacement Lib "user32" _
(ByVal hwnd As Long, lpwndpl As WINDOWPLACEMENT) As Long
Declare Function SetWindowPlacement Lib "user32" _
(ByVal hwnd As Long, lpwndpl As WINDOWPLACEMENT) As Long

xegallo
17-05-2002, 18.13.50
bastava aggiungere
Public Const SW_RESTORE = 9