Got a couple more questions:
a) The lParam of the WM_CREATE message is, according to Microsoft, "Pointer to a CREATESTRUCT structure that contains information about the window being created." However when I try to do things like lParam->lpCreateParams, I get the compiler error "base operand of `->' is not a pointer".
b) What is the BOOL type? I know that the "bool" type (lowercase) is a type in Standard C++ which can be "true" or "false". When I used to do C, we used to define things like:
and I guessed that this was what the "bool" type was. But now we get this "BOOL" type (uppercase) and I find that the GetMessage function (which returns a BOOL) can return -1 as a value! Is a BOOL just a signed int? In which case it is taking up way too much memory for a boolean variable which should take only one byte.Code:typedef enum{FALSE, TRUE} BOOL;