acvtive控件初始化大小,该如何处理
acvtive控件初始化大小
我想在控件内部设置好控件的大小,就是不需要外部程序来控制,请问该怎么弄啊?
------解决方案--------------------
如果控件不想随外部大小变化,那么在外部创建时指定一个大小,控件只在首次初始化时响应此大小,以后不再理会WM_SIZE就行了。
------解决方案--------------------
试试
COleControl::SetInitialSize
Call this function in your constructor to set the initial size of your control. The initial size is measured in device units, or pixels. It is recommended that this call be made in your control's constructor.
我想在控件内部设置好控件的大小,就是不需要外部程序来控制,请问该怎么弄啊?
------解决方案--------------------
如果控件不想随外部大小变化,那么在外部创建时指定一个大小,控件只在首次初始化时响应此大小,以后不再理会WM_SIZE就行了。
------解决方案--------------------
试试
COleControl::SetInitialSize
Call this function in your constructor to set the initial size of your control. The initial size is measured in device units, or pixels. It is recommended that this call be made in your control's constructor.