Consegui:
Alem de impedir o redimensionamento, exclui os botoes maximizar e minimizar
Segue o código como ficou
Option Explicit
Public Const GWL_STYLE = (-16)
Public Const WS_THICKFRAME = &H40000
Public Const WS_MINIMIZEBOX = &H20000
Public Const WS_MAXIMIZEBOX = &H10000
Public Declare Function GetWindowLong Lib "User32" Alias "GetWindowLongA" ( _
ByVal hWnd As Long, _
ByVal nIndex As Long) As Long
Public Declare Function SetWindowLong Lib "User32" Alias "SetWindowLongA" ( _
ByVal hWnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Public Sub Prevent_Window_Resize()
Dim hWnd As Long
Dim style As Long
Dim ret As Long
hWnd = Application.hWnd
style = GetWindowLong(hWnd, GWL_STYLE)
'From http://support.microsoft.com/kb/133256
'Remove the thick frame style and the Minimise and Maximise buttons
style = style And Not (WS_THICKFRAME Or WS_MAXIMIZEBOX Or WS_MINIMIZEBOX)
ret = SetWindowLong(hWnd, GWL_STYLE, style)
End Sub
Valeu cara!
Att
Postado : 23/10/2014 2:41 pm