![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
soui
thq3322110
这个作者很懒,什么都没留下…
展开
-
修改soui的hostwnd最小窗口大小
soui默认对shostwnd限制了最小大小200*200,如果想要将窗口设置为更小,需要在<SOUI 属性中,增加minsize,从而支持将窗口设置为更小的大小原创 2020-11-26 10:54:23 · 542 阅读 · 0 评论 -
soui控件坐标转换为Windows屏幕坐标
soui控件坐标转换为Windows屏幕坐标 CRect rect; GetWindowRect(rect); ::ClientToScreen(GetContainer()->GetHostHwnd(), &rect.TopLeft()); ::ClientToScreen(GetContainer()->GetHostHwnd(), &rect.BottomRight());原创 2020-10-30 10:39:10 · 158 阅读 · 0 评论 -
SOUI自定义控件,如何响应控件范围外的其他事件?
SOUI自定义控件,如何响应控件范围外的其他事件? 第一步,继承 public IMessageFilter 重写 virtual BOOL PreTranslateMessage(MSG* pMsg); 构造函数中 GetMsgLoop()->AddMessageFilter(this); 析构函数中 GetMsgLoop()->RemoveMessageFilter(this); 获取消息循环 SMessageLoop * GetMsgLoop(); { return SApplicatio原创 2020-10-30 10:37:19 · 124 阅读 · 0 评论