|
|
|
|
|
by roel_v
5373 days ago
|
|
No, because the NM_ messages are for standard controls only. There are more messages in the WM_ family that aren't really 'command' messages, but more 'notification' messages, like WM_CREATE. It's not like one can create a window by allocating memory, casting to an HWND and sending WM_CREATE to it. I guess the conclusion is that one cannot blindly take WM_xxx message and think 'oh I can use ::SendMessage() and friends to make windows do certain things'. Only the documented behavior are valid use cases. I guess one could say that the WM_xxx message should've been split up into more subclasses, but where to draw the line? I'm quite fine with using WM_xxx for all the fundamental window manager messages, as long as one minds their documented behavior there is no problem. (I realize that this last sentence can spark a whole discussion by itself on how far self-documenting a 'sane' API should be, but that's rather subjective imo). |
|
WM_PUBLIC_CREATE and WM_PROTECTED_DESTROY
Then there would be no confusion about who was supposed to send the messages and how they were meant to be interpreted. Of course they don't have to use this exact terminology, but you get the idea.