|
-
March 25th, 2003, 03:52 PM
#1
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
-
March 25th, 2003, 03:59 PM
#2
Hi,
Look at WM_GETMINMAXINFO.
Regards,
Emanuel Vaduva
-
March 25th, 2003, 04:56 PM
#3
Try calling COleControl::SetInitialSize() in the control's constructor.
Gort...Klaatu, Barada Nikto!
-
March 25th, 2003, 05:42 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|