I'm a bit confused as to what NativeWindow
should be used for.
What I would like to do is instantiate a NativeWindow
-derived object and use it to listen to certain Windows events - rather than listening to them in one of my forms. However, I seem to understand that, in order to have my window's message pump receive messages, I need to assign the window a handle. The tutorials I could find all refer to assigning the window the handle of a "parent form", which would partly defeat my goal (ok, I'd get to separate the message-listening concern, but I would still need to attach that concern to one of my forms rather than having it run on its own).
So, to the question:
Is there a way to construct a NativeWindow
that is capable of receiving system events in its message pump without having to make it "a child" of another form?