Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Activex which itself a control container?

Activex which itself a control container?

Scheduled Pinned Locked Moved ATL / WTL / STL
questionc++comdocker
5 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tomer dror
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • T tomer dror

      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

      R Offline
      R Offline
      Rashid Thadha
      wrote on last edited by
      #2

      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.

      T 1 Reply Last reply
      0
      • R Rashid Thadha

        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.

        T Offline
        T Offline
        tomer dror
        wrote on last edited by
        #3

        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

        R 1 Reply Last reply
        0
        • T 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

          R Offline
          R Offline
          Rashid Thadha
          wrote on last edited by
          #4

          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 ?

          T 1 Reply Last reply
          0
          • R Rashid Thadha

            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 ?

            T Offline
            T Offline
            tomer dror
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups