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. C / C++ / MFC
  4. ActiveX Control - sorounding box isnt changed in OnDraw

ActiveX Control - sorounding box isnt changed in OnDraw

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
1 Posts 1 Posters 1 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.
  • A Offline
    A Offline
    Anders Eriksson
    wrote on last edited by
    #1

    Hello! I'm creating my very first ActiveX Control! I'm using the AppWizard to create the project. I then changed the code in OnDraw so that the CRect allways is a square. I then use FillRect() and Ellipse() to create a white box with a circle in it. (I'm just trying this) When I then insert this Control into VB (or ...) I get a box, with 'handles', around my square, for resizing it. When I resize it the white box with the circle will be a square, BUT the box around it has the size it got when I used the mouse to resize it. This often leads to that only a part of my white box and circle will be shown! How do I change the sorrounding box:confused: :confused:

    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