|
At my company we are developing an canvas that will be used to visually create data synchronization business rules.
What I am trying to achieve is the ability to use WinForms controls within the CanvasItems. In the current prototype I composite the canvas myself by rendering the controls using DrawToBitmap and use the composite engine to nicely layout/overlay/draw lines between items, etc etc. (also think about things like rubberband selection).
Graphically we achieve great flexibility by the indirect rendering however I am fighting with input redirection.
Not only do I want to redirect the input on the canvas to the right control within the canvasitem, I also want the ability to 'transform' inputs. (think about rotated controls). This works fine for things like mouse-over. (I am transforming and after that PostMessage mousemoves translated to NCHITTESTs, and such) however it fails for things like mouse clicks on a button.
I am not fishing for a complete solution, I am fishing for any information that could help me to understand in depth the message handling of window controls. For example I see different messages between SPY++ and an DefWndProc override within a control that inheretences from a button. (I am really interested in the story behind this).
Any help, any pointers on this issue will help me.
Thanks a lot in advance.
|