博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
添加工具条
阅读量:4557 次
发布时间:2019-06-08

本文共 842 字,大约阅读时间需要 2 分钟。

 //添加工具条  if (!m_wndtoolbar.CreateEx(this,TBSTYLE_FLAT,  WS_CHILD | WS_VISIBLE | CBRS_ALIGN_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS ,         CRect(4,4,0,0)) || !m_wndtoolbar.LoadToolBar(IDR_TOOLBAR))  {
  MessageBox("创建工具栏失败!", "错误", MB_ICONSTOP);   return FALSE;  }
 m_wndtoolbar.ShowWindow(SW_SHOW);  RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);

CWnd::RepositionBars

This method repositions and resizes control bars in the client area of a window. The nIDFirst and nIDLast parameters define a range of control-bar identifiers to be repositioned in the client area. The nIDLeftOver parameter specifies the identifier of the child window, usually the view, which is repositioned and resized to fill the rest of the client area not filled by control bars.

转载于:https://www.cnblogs.com/rrll/archive/2011/08/10/2134043.html

你可能感兴趣的文章
Java Spring-IOC和DI
查看>>
【NOIP1999】【Luogu1015】回文数(高精度,模拟)
查看>>
Linux上安装Python3.5
查看>>
crt安装
查看>>
git切换分支报错:error: pathspec 'origin/XXX' did not match any file(s) known to git
查看>>
c++中static的用法详解
查看>>
转 我修改的注册表,但是程序运行起来,还是记着以前的
查看>>
图片轮播功能
查看>>
第六周小组作业:软件测试和评估
查看>>
linux Cacti监控服务器搭建
查看>>
debian(kali Linux) 安装net Core
查看>>
centos 7防火墙设置
查看>>
自定义进度条(圆形、横向进度条)
查看>>
spark-streaming-kafka采坑
查看>>
9.Mongodb与python交互
查看>>
18-[JavaScript]-函数,Object对象,定时器,正则表达式
查看>>
读取短信回执
查看>>
EF 数据初始化
查看>>
PreparedStatement与Statement
查看>>
WebService -- Java 实现之 CXF ( 使用CXF工具生成client 程序)
查看>>