I need to validate a window style to ensure the window has a sizeable border before continuing any processing. I’ve got the following so far…
Private Declare Function GetWindowLong Lib “user32” Alias “GetWindowLongA” (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Const GWL_STYLE = (-16)
Private Function ValidateWindowStyle() As Boolean
Dim lResult As Long
lResult = GetWindowLong(m_varhWnd, GWL_STYLE)
End Function
So ‘lResult’ returns window info, but how to compare and against which constant(s) to determine if the window is the appropriate style??
Thanks