正在应用MFC Feature Pack2008.CMFCToolbar不起作用 [英] Applying MFC Feature Pack 2008. CMFCToolbar not working
本文介绍了正在应用MFC Feature Pack2008.CMFCToolbar不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将所有控件转换为MFC Feature Pack,但现在toobar在框架上不可见.我将CToolBar更改为CMFCToolBar,将CFrameWnd更改为CFrameWndEx等.
有任何建议吗?
I tried to convert all controls to MFC Feature pack but now toobar is not visible on the frame. I changed CToolBar to CMFCToolBar, CFrameWnd to CFrameWndEx etc.
Any suggestions?
推荐答案
请通过Studio向导创建一个简单的MFC SDI应用程序,
然后转到CMainFrame::OnCreate(..)
并在那里观察所需的准备.
条形的使用有一些变化...:)
Please create a simple MFC SDI application by the studio wizard,
then go to theCMainFrame::OnCreate(..)
and observe the needed preparing there.
There are some changes at the using of bars... :)
感谢您的回复.我观察到,如果我以修改后的代码移动工具栏,则可以看到它们.基本上在创建时会在框架上不可见的位置创建工具栏.有什么功能可以知道工具栏的位置吗?
Thanks for your reply. I observed that if I move the toolbars in modified code then I could see them. Basically while getting created toolbars are created in a position which is not visible on the frame. Is there any function to know the position of the toolbar?
您可以使用CWnd::GetWindowRect(..)
也适用于停靠或浮动的收费栏.
条的"prestart"位置也保存在注册表中,
如果尚未禁用其Load-/SaveState(..)
方法:)
You could useCWnd::GetWindowRect(..)
for a docked or floating tollbar too.
The "prestart" position of a bar is also saved in the registries,
if itsLoad-/SaveState(..)
methods have been not disabled/modified :)
这篇关于正在应用MFC Feature Pack2008.CMFCToolbar不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文