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. resize ATL activeX control

resize ATL activeX control

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comhelptutorialquestion
5 Posts 2 Posters 0 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.
  • H Offline
    H Offline
    Hesham Amin
    wrote on last edited by
    #1

    Hi How to resize an ATL activeX Control ? (from inside the Control's code) I use SetWindowPos or MoveWindow and they work..But when the contol is activated (the user clicks it) it's resized back to the original size. any help with this ? I use ATL 3.0

    H 1 Reply Last reply
    0
    • H Hesham Amin

      Hi How to resize an ATL activeX Control ? (from inside the Control's code) I use SetWindowPos or MoveWindow and they work..But when the contol is activated (the user clicks it) it's resized back to the original size. any help with this ? I use ATL 3.0

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      found !!! http://www.mindcracker.com/mindcracker/c_cafe/faq/x12.asp[^]

      J 1 Reply Last reply
      0
      • H Hesham Amin

        found !!! http://www.mindcracker.com/mindcracker/c_cafe/faq/x12.asp[^]

        J Offline
        J Offline
        Jason De Arte
        wrote on last edited by
        #3

        However if your constol is being hosted in Internet Explorer - that won't work. ;-) The "trick" in IE is to find the IHTMLObjectElement that represents your ActiveX control & change it's height / width. This will cause IE to adjust it's layout & resize your ActiveX control's window. [ Jason De Arte | Toy Maker | 1001010.com ]

        H 1 Reply Last reply
        0
        • J Jason De Arte

          However if your constol is being hosted in Internet Explorer - that won't work. ;-) The "trick" in IE is to find the IHTMLObjectElement that represents your ActiveX control & change it's height / width. This will cause IE to adjust it's layout & resize your ActiveX control's window. [ Jason De Arte | Toy Maker | 1001010.com ]

          H Offline
          H Offline
          Hesham Amin
          wrote on last edited by
          #4

          Jason De Arte wrote: However if your constol is being hosted in Internet Explorer - that won't work Are you sure ? :confused::confused::confused: In fact I used this in IE6 and worked fine !! does this change for other IE versions ?

          J 1 Reply Last reply
          0
          • H Hesham Amin

            Jason De Arte wrote: However if your constol is being hosted in Internet Explorer - that won't work Are you sure ? :confused::confused::confused: In fact I used this in IE6 and worked fine !! does this change for other IE versions ?

            J Offline
            J Offline
            Jason De Arte
            wrote on last edited by
            #5

            I am as certain of that just as I am certain of my ability to spell the most common of words. constol d'oh! [ Jason De Arte | Toy Maker | 1001010.com ]

            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