|
A docked toolbar is a child of the frame window it's docked to, but a floating toolbar is a child of the mini frame window that surrounds it. The mini frame window is a popup window owned by the frame window, but it's not a child of the frame window. (A popup window is a window with the style WS_POPUP; a child window has the WS_CHILD style instead.) The distinction is important because popup windows owned by a frame window are destroyed before the frame window is destroyed. Child windows, on the other hand, are destroyed after their parents are destroyed. A floating toolbar no longer exists when the frame window's OnDestroy function is called. |
float ToolBar && dock ToolBar--发布日期:2007-9-1
浮动工具栏与停靠工具栏的区别
最新推荐文章于 2024-05-13 09:47:53 发布
本文探讨了在Windows应用程序中浮动工具栏与停靠工具栏的不同之处。浮动工具栏作为迷你框架窗口的一部分,而停靠工具栏则是框架窗口的子窗口。这两种类型的工具栏在其所有者和生命周期管理方面存在差异。
3006

被折叠的 条评论
为什么被折叠?



