Dock窗口在win32 c ++中 [英] Dock window in win32 c++

查看:600
本文介绍了Dock窗口在win32 c ++中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在C ++ win32 API中停靠一个子窗口控件(就像有WS_ *样式或者东西),或者你总是需要在父窗口上监听WM_SIZE消息,并手动重新布局/填充所有的子窗口?

Can you dock a child window control in C++ win32 API (like are there WS_* styles or something), or do you always have to listen for the WM_SIZE message on the parent window and manually re-layout/fill all the children?

推荐答案

WinAPI中没有什么可以自动化的,它通常由框架包装器。)。但是,有几个库(例如一个),您可以用它来替代从头开始实现它。

There is nothing directly available in the WinAPI that will automate this, it's generally implemented by framework wrappers (like MFC...). However, there are a few libraries (such as this one) that you could use as an alternative to implementing it from scratch.

这篇关于Dock窗口在win32 c ++中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆