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
Printable View
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
Hi,
Look at WM_GETMINMAXINFO.
Try calling COleControl::SetInitialSize() in the control's constructor.
Thanks for your help guys
SetInitialSize() and SetControlSize() works pretty good.
You guys are great.
Thanks again