Code:
case WM_CREATE:
		if (hwnd == childwindowHandle)
		{
			
			x = TRUE;
			
		}
x is never set to true.

This is a child window. This case is in the message switch for the child window's message procedure. There are multiple children of the same class. The child windows are created drawn and functional. This logic exactly works in other cases such as WM_PAINT and WM_LBUTTONDOWN and other logic making referencing the parameter hwnd also has no problems.

Why for WM_CREATE, when in the documentation it states that WM_CREATE is called after window creation but before window visibility, does hwnd not evaluate to the handle of the created window?




Thank you guys, First post ^_^
-Kev

PS. I don't have permission to create tags on this forum but there's no WM_CREATE tab!