Thread: Can't I reduce the default size of Activex Control (rcBounds)

  1. #1
    Registered User
    Join Date
    May 2002

    Question Can't I reduce the default size of Activex Control (rcBounds)

    I am developing activex Control using MFC ,

    When ever i use the ActiveX Control Wizard from the
    File > New in VC++ , I will get default function OnDraw

    void MyCtl::On Draw(CDC *pdc,const CRect &rcBounds, const CRect &rcInvalid){
    default drawing code of Activex Control


    My doubt is rcBounds has got some fixed size, and when I try to reduce I am getting drawing problems. Is there any solution to change the default size given to rcBounds

    If any body can help me I would be lot thankful to them

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    Are you trying to change the size of the window or draw in an area smaller than the window? Ah, I think I understand. OnDraw should use the size of your client region. If you change the size of your window, or call the function using a rectangle that is the size you want you should be good to go.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 03-25-2003, 05:13 PM
  2. Changing a Structures Members array size
    By Xei in forum C++ Programming
    Replies: 1
    Last Post: 11-07-2002, 07:45 PM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  4. File Size and File Size on Disk
    By DavidP in forum A Brief History of
    Replies: 4
    Last Post: 12-15-2001, 08:03 PM
  5. Replies: 5
    Last Post: 09-03-2001, 09:45 PM