evanscamman
Registered User.
- Local time
- Today, 00:34
- Joined
- Feb 25, 2007
- Messages
- 274
I'm trying to understand the logic behind this IF statement:
This code works, but i can't understand how.
My guess is that it is something to do with Constants and how they can be evaluated...
What does it mean: IF this AND That Then
If this what? if This and That equal something? If This and That are > than 0? If This is smaller than That?
Evan
Code:
const WS_MAXIMIZE as long = &H1000000
lngStyle = GetWindowLong(frmhWnd, GWL_STYLE)
If lngStyle And WS_MAXIMIZE Then
lngWndState = SW_SHOWMAXIMIZED
ElseIf lngStyle And WS_MINIMIZE Then
lngWndState = SW_SHOWMINIMIZED
Else
lngWndState = SW_SHOWNORMAL
End If
This code works, but i can't understand how.
My guess is that it is something to do with Constants and how they can be evaluated...
What does it mean: IF this AND That Then
If this what? if This and That equal something? If This and That are > than 0? If This is smaller than That?
Evan