Hello,
First and foremost thank you very much for this, its exactly what I have been missing from Win32InterOps. There are quite a few things I am not entirely certain how to proceed in using this project, so I hope you don't mind id ask for your opinion.
OnLoad event
WinForms have useful event OnLoad, how do I "replicate" this event given that there is no such WM msg?
Actually there are only:
Create = Interop.WM_CREATE,
NonClientCreate = Interop.WM_NCCREATE,
Why is the WM_NCCREATE called non-client? Which precedes which? Is there any other WM event preceding these events which could be used?
Also id like for my OnLoad event to be entirely independent of wherever the Window will ever be visible or shown, it should work anyways.
Event handlers
What kind of event handlers you plain to implement?
Will there be some kind of unified Event Bus?
I am currently building one such. And I quite wonder why class EnterIdleHandler does not actually implements an interface, is that on purpose or just not implemented yet?
Embedding/Absorbing windows
Currently I am using this to create GUI for C# application interfacing a C++ program, and id love to embed the Window of C++ application within my C# application, what is the proper/meaningful/useful procedure to do this?
Currently i am doing some junk like this:
- Set the C# app as parent of the C++ app
- Set windowLong for styles on child to remove the borders and other junk
- Calculate size/position within the C# app
- Set childs size/position to fit within parent
- Register size/position event handler for parent to update the child to right size/pos after parents move/rezise.
Or are you supposed to use some kind of Containers for this? Like you do with the embedding of ActiveX component?