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

This is a discussion on Can't I reduce the default size of Activex Control (rcBounds) within the Windows Programming forums, part of the Platform Specific Boards category; I am developing activex Control using MFC , When ever i use the ActiveX Control Wizard from the File > ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    21

    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
    Location
    Visalia, CA, USA
    Posts
    3,685
    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, 10:44 AM
  4. File Size and File Size on Disk
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 12-15-2001, 08:03 PM
  5. Replies: 5
    Last Post: 09-03-2001, 10:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21