Activex which itself a control container?
-
Hi, I want to create ATL control like MS Tab control to use on VB form How can i create this control in such a way that user can select other controls from VB toolbox and insert it on my control i tried to register drag and drop target inside my control but it wouldnt work if user just put the control and not drag it. i understand that i need to use CComCompositeControl inside my control but do i need to expose other interfaces for VB? thanks tomer
-
Hi, I want to create ATL control like MS Tab control to use on VB form How can i create this control in such a way that user can select other controls from VB toolbox and insert it on my control i tried to register drag and drop target inside my control but it wouldnt work if user just put the control and not drag it. i understand that i need to use CComCompositeControl inside my control but do i need to expose other interfaces for VB? thanks tomer
You need to create an ATL Project from the main wizard, then add the composite control from the 'Add ATL Object' Wizard. This gives you the basic composition control that you can use in VB. Professional ATL COM Programming by Richard Grimes has a good chapter on this suject.
-
You need to create an ATL Project from the main wizard, then add the composite control from the 'Add ATL Object' Wizard. This gives you the basic composition control that you can use in VB. Professional ATL COM Programming by Richard Grimes has a good chapter on this suject.
Thanks Rashid, i already tried to create a composite control,but it didnot work on vb,i mean i could not add controls to the composite from VB i found that MFC use OLEMISC_SIMPLEFRAMESITE and ISimpleFrameSite to create a simple frame container thanks. tomer dror
-
Thanks Rashid, i already tried to create a composite control,but it didnot work on vb,i mean i could not add controls to the composite from VB i found that MFC use OLEMISC_SIMPLEFRAMESITE and ISimpleFrameSite to create a simple frame container thanks. tomer dror
I recently created a composite control using pure ATL and WTL (No MFC) and I had no problems. You might need to give me more details on what goes wrong ?
-
I recently created a composite control using pure ATL and WTL (No MFC) and I had no problems. You might need to give me more details on what goes wrong ?
Rashid here is what i did 1.create a composite control 2.put it on a VB form 3.choose a command button control from the VB toolbox and put it on the atl composite control the result is that the command button control didnot become a child control of the composite control,if i move the composite control the command button control stay in his place i just want to create a control like SSTab,of FRAME