调整ActiveX控件的大小 [英] resizing activex control
问题描述
我有一个带有4个拆分器的Activex控件.
每个拆分器具有不同的控件(树控件,网格类型的列表控件,按钮,退出框和测试框).
我在调整窗口大小时遇到问题(即,当我单击工具栏上的恢复按钮时,控件不会自动调整大小,但是如果我只是使用鼠标稍微拖动(调整大小)窗口,则单击恢复按钮后,所有控件的大小均已正确调整)
请帮助我解决此问题.
谢谢,
Phani.
Hi,
I''ve an activex control with 4 splitters inside it.
Each splitter is having different controls (tree controls, list controls of type grid, buttons, exit boxes and test boxes).
I''m having a problem when i resize the window(i.e. when i click the restore button on the toolbar, the controls are not getting resized automatically, but after clicking restore button if i just drag(resize) the window using the mouse slightly, all the controls are resized properly)
Kindly help me out in fixing this problem.
Thanks,
Phani.
推荐答案
只需在WM_SIZE消息处理程序中调用SetWindowPos.
A SetWindowPos call in your WM_SIZE message handler is all you should be needing.
这篇关于调整ActiveX控件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!