如何在工具栏中引入或嵌入列表框? [英] How do I introduce or embed a list box in my tool bar?
本文介绍了如何在工具栏中引入或嵌入列表框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用以下方法在工具栏中引入或嵌入列表框:
1. MFC
2. WIN32API?
解决方案
在这两种情况下,您都使用标准列表框,make是工具栏控件的子控件。在这两种情况下,它都可以基于Windows APISetParent
:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633541%28v= vs.85%29.aspx [ ^ ]。
还有很多与之相关的内容:如何为a定义窗口类窗口对象,创建窗口并获取其句柄等。您现在需要学习Windows API的工作原理。
-SA
How do I introduce or embed a list box in my tool bar using:
1. MFC
2. WIN32API ?
解决方案
In both cases, you use a standard list box and make is a child control of the toolbar control. In both cases, it can be based, for example, on Windows APISetParent
:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633541%28v=vs.85%29.aspx[^].
There is a lot more related to it: how to define window class for a window object, create a window and obtain its handle, etc. You really need to learn now Windows API works.
—SA
这篇关于如何在工具栏中引入或嵌入列表框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文