CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Location
    NJ
    Posts
    5

    Question How to set Initial size of my ActiveX control

    Hi

    I am trying to create an fixed size ActiveX control,

    I tried in OnSize() function to restrict width (cx) and height (cy), but doesn't seem to help.

    I also tried SetWindowPos(), that also doesn't help.

    Anyone can help me out.

    Thanks

  2. #2
    Join Date
    May 2000
    Location
    Toronto, ON, Canada
    Posts
    3,573
    Hi,

    Look at WM_GETMINMAXINFO.
    Regards,

    Emanuel Vaduva

  3. #3
    Join Date
    Apr 1999
    Posts
    3,585
    Try calling COleControl::SetInitialSize() in the control's constructor.
    Gort...Klaatu, Barada Nikto!

  4. #4
    Join Date
    May 1999
    Location
    NJ
    Posts
    5

    Thank You

    Thanks for your help guys

    SetInitialSize() and SetControlSize() works pretty good.

    You guys are great.

    Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured