Okay, so I've gone over a couple of the tutorials at
http://www.winprog.org/ and have come across something a tad confusing. If you were to exclude the
default case (returning a default procedure) in the
"msg" switch inside the
WndProc() function, assigning the creation of a window (yielding that function) to a handler will ultimately result in a NULL handler.
Now, I assume that this happens because the
CreateWindowEx() function calls
WndProc() at some point - and because there is nothing telling it to return the default parameters (the value 0 is returned), everything that was passed into the
CreateWindowEx() function is simply disregarded.
Is that the case? If so, what is the purpose behind
CreateWindowEx() calling the window procedure function before using something like
GetMessage(), where it has already been assigned in the class's registration?
Edit:
One last thing - what is the purpose behind including WPARAM and LPARAM inside the WndProc() function, and what do the initial letters stand for? (E.g., W___ parameter, L___ parameter)