请问如何控制程序刚开始时,工具条的位置?
解决方案 »
- 如何将.c的文件使用在MFC对话框程序中呢?
- 怎么让对话框响应鼠标单击事件,我这个没反应
- vc写入txt
- 添加2条记录后,表中为何只显示一条记录?
- windows api实现窗口问题!
- MultiByteToWideChar(unsigned int, unsigned long,char*, int ,unsigned short*,int )是什么功能的啊??
- DrawFocusRect怎么画不出矩形框来
- 请问如何全局得到选择好(可以被copy, cut)的文本内容
- 如何在SDI中添加多个视图
- 关于打开文件并显示的问题(如何用API函数实现)
- 一份很经典的材料~~!强烈推荐!要者留妹儿
- VC高级编程实例
BOOL Create( CWnd* pParentWnd, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP, UINT nID = AFX_IDW_TOOLBAR );参数
dwStyleThe toolbar style. Additional toolbar styles supported are: CBRS_TOP Control bar is at top of the frame window.
CBRS_BOTTOM Control bar is at bottom of the frame window.
CBRS_NOALIGN Control bar is not repositioned when the parent is resized.
CBRS_TOOLTIPS Control bar displays tool tips.
CBRS_SIZE_DYNAMIC Control bar is dynamic.
CBRS_SIZE_FIXED Control bar is fixed.
CBRS_FLOATING Control bar is floating.
CBRS_FLYBY Status bar displays information about the button.
CBRS_HIDE_INPLACE Control bar is not displayed to the user.
他使用m_wndToolBar.CreateEx()的时候,风格设置的是什么!换你需要的。比如说CBRS_TOP
换成CBRS_BOTTOM 那工具条就到了下面。
http://www.vckbase.com/document/viewdoc.asp?id=515如何定制浮动工具条
FloatControlBar(&m_wndToolBar, CPoint(200,300),CBRS_ALIGN_RIGHT);注意这第二个参数,相对的应该是整个屏幕的坐标。