ATL Composite Control Sample
Posted on 2000-02-25
I am new to atl-I have created an atl composit control that contains 1 activex control. I need to do the following.
1-Have the contained control always move/size to completely fill the atl control (IE I want the atl control to basically not exist from the users perspective).
2-I need the atl control to have an OLE verb called "Edit". The Edit action needs to call a method on the control. How to create the Edit Verb and How to call a method on the contained control?
3-I am inserting this control into Visio (a drawing program) When ever the Edit verb is executed I need the atl control to set the dirty flag so visio will see it as needing to be saved. When visio saves the document I need the contained active x control to be persisted in the visio document. When visio loads the document I need the contained controls info put pack in the contained control. Basically how to get the atl control to persist the activex control.
I know this is pretty broad but I need to get something like this working fast. Code samples/snipets appreciated.