我看过的TOOLBAR 都是横着的,可是我现在想做一个竖立这的TOOLBAR 我该怎么做啊!我翻遍了 CODEGURU 可是没有一个这样的例子! 谁有什么好例子 多谢了!!

cherryppp 2001-11-21 06:17:00
我看过的TOOLBAR 都是横着的,可是我现在想做一个竖立这的TOOLBAR 我该怎么做啊!我翻遍了 CODEGURU 可是没有一个这样的例子! 谁有什么好例子 多谢了!!
...全文
181 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
cherryppp 2001-11-30
  • 打赏
  • 举报
回复
能给分了
alpasino 2001-11-28
  • 打赏
  • 举报
回复
假设是个对话框,就行了
cherryppp 2001-11-26
  • 打赏
  • 举报
回复
to: jiangsheng(蒋晟)
多谢
可是 我还是不太明白! 你们说的方法我都试过了
toolbar可以! 可是我的Rebar 就是不行!
那个该死的东西老是死死的 贴在窗口的最上边 怎么改都不动,唯一能改变的是他的厚度!
谁有例子啊!
可以发给我 多谢了!
tian_ye@v2tech.com 多谢了!
cherryppp 2001-11-26
  • 打赏
  • 举报
回复
我靠! CSDN 现在的系统怎么这么烂!
不是我不想给分!我发了好几次了!老是告诉我
HTTP 500内部服务器错误!
晚上在说吧!
cherryppp 2001-11-26
  • 打赏
  • 举报
回复
我搞明白了 多谢了 给分!
蒋晟 2001-11-25
  • 打赏
  • 举报
回复
http://www.csdn.net/expert/topic/384/384792.shtm
cherryppp 2001-11-25
  • 打赏
  • 举报
回复
TOOLBAR 我明白了! 可是一个Rebar!呢!!用MFC 有谁知道呢!怎么设置!多谢了!
loop000 2001-11-24
  • 打赏
  • 举报
回复
收了
ydogg 2001-11-24
  • 打赏
  • 举报
回复
来瞧瞧
Michael_yu 2001-11-24
  • 打赏
  • 举报
回复
add WARP attribtion, and limit width.
cherryppp 2001-11-24
  • 打赏
  • 举报
回复
还有吗! 在说两句!
DeadWolf 2001-11-21
  • 打赏
  • 举报
回复
踩壹脚
MSVCer 2001-11-21
  • 打赏
  • 举报
回复
VC自己提供了一个例子,你不如去看看,我做出来也大概是这个样子,还不一定猴年马月呢
在VC光盘源码目录
...\VC_MFC\GENERAL\CTRLBARS
看CPaletteBar类
MSVCer 2001-11-21
  • 打赏
  • 举报
回复
欧,是这样啊
如果你愿意等一会,我试试看能不能做出来,以前好象试验过
cherryppp 2001-11-21
  • 打赏
  • 举报
回复
有例子! 
不是停靠的时候 也希望能显示成为 竖立这的!
MSVCer 2001-11-21
  • 打赏
  • 举报
回复
总算帖上来了,害得我贴了不下20次
最近CSDN的胶水不粘怎么的
MSVCer 2001-11-21
  • 打赏
  • 举报
回复
净乱说,臭嘴
用下面三个函数就行了
+=======================
CFrameWnd::EnableDocking
void EnableDocking( DWORD dwDockStyle );

Parameters

dwDockStyle

Specifies which sides of the frame window can serve as docking sites for control bars. It can be one or more of the following:

CBRS_ALIGN_TOP Allows docking at the top of the client area.


CBRS_ALIGN_BOTTOM Allows docking at the bottom of the client area.


CBRS_ALIGN_LEFT Allows docking on the left side of the client area.


CBRS_ALIGN_RIGHT Allows docking on the right side of the client area
+===================================
CControlBar::EnableDocking
void EnableDocking( DWORD dwStyle );

Parameters

dwStyle

Specifies whether the control bar supports docking and the sides of its parent window to which the control bar can be docked, if supported. Can be one or more of the following:

CBRS_ALIGN_TOP Allows docking at the top of the client area.


CBRS_ALIGN_BOTTOM Allows docking at the bottom of the client area.


CBRS_ALIGN_LEFT Allows docking on the left side of the client area.


CBRS_ALIGN_RIGHT Allows docking on the right side of the client area
+==============================
CFrameWnd::DockControlBar
void DockControlBar( CControlBar * pBar, UINT nDockBarID = 0, LPCRECT lpRect = NULL );

Parameters

pBar

Points to the control bar to be docked.

nDockBarID

Determines which sides of the frame window to consider for docking. It can be 0, or one or more of the following:

AFX_IDW_DOCKBAR_TOP Dock to the top side of the frame window.


AFX_IDW_DOCKBAR_BOTTOM Dock to the bottom side of the frame window.


AFX_IDW_DOCKBAR_LEFT Dock to the left side of the frame window.


AFX_IDW_DOCKBAR_RIGHT Dock to the right side of the frame window.
If 0, the control bar can be docked to any side enabled for docking in the destination frame window
=+++++++++++++++++++++++++++++++++++
总是内部服务器错误,总上帖不上来
MSVCer 2001-11-21
  • 打赏
  • 举报
回复
指定风格为竖着的,查一下MSDN中的说明

16,550

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧