Win32拆分器控件 [英] Win32 Splitter Control

查看:121
本文介绍了Win32拆分器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Win32的所有不同控件中,是否有任何基本的 lightweight Splitter/Splitcontainer控件可用(意味着一个或两个C/C ++文件 max ) ?

我似乎无法在Visual Studio中显示的默认控件中找到任何控件,而且我在网上找到的所有内容似乎都适用于MFC,而我在项目中没有使用它...

解决方案

不存在本机win32拆分器,您必须使用框架或编写自己的框架. Codeproject甚至有自己的拆分器类别.

如果您自己编写,则基本上有两个选择:

  • 窗口A和B的父级是分隔符(分隔符边框来自窗口A和B上的WS_EX_CLIENTEDGE)
  • A和B被第三个窗口隔开;分离器

Of all the different controls that there are for Win32, is there any basic, lightweight Splitter/Splitcontainer control available (meaning one or two C/C++ files max)?

I can't seem to find any in the default controls shown in Visual Studio, and everything I find online seems to be for MFC, which I'm not using in my project...

解决方案

No there is no native win32 splitter, you have to use a framework or write your own. Codeproject even has its own splitter category.

If you write your own you basically have two options:

  • The parent of window A and B is the splitter (The splitter border comes from WS_EX_CLIENTEDGE on windows A and B)
  • A and B are separated by a third window; the splitter

这篇关于Win32拆分器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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