青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

醬壇子

專注C++技術 在這里寫下自己的學習心得 感悟 和大家討論 共同進步(歡迎批評!!!)

  C++博客 :: 首頁 :: 聯系 :: 聚合  :: 管理
  66 Posts :: 16 Stories :: 236 Comments :: 0 Trackbacks

公告

王一偉 湖南商學院畢業 電子信息工程專業

常用鏈接

留言簿(19)

我參與的團隊

搜索

  •  

積分與排名

  • 積分 - 388787
  • 排名 - 64

最新隨筆

最新評論

閱讀排行榜

評論排行榜

1) Right click Solution Explorer -> Add -> Resource -> Tool Bar -> New. This will open into Tool Bar Editor.

2)You can Create/Paint Buttons here. Make sure you change the default Ids of these buttons to some proper usable ids. (Use Property Explorer for this), this will create a .bmp image in resources. (Lets say, The Tool Bar is ‘TDR_TOOLBAR1’ and the two buttons are ‘IDC_TBUTTON1’ and ‘IDC_TBUTTON2’ )

3)Now go to the .h for dialog(You can add a class to a dialog) on which toolbar need to be placed. Declare a ‘CToolBar’ Object

CToolBar m_FirstToolBar

4)Now on the .cpp file of the dialog, in ‘OnInitDialog()’ add following code;(You Can add OnInitDialog event to the directly by declaring it in .h file added and using it in .cpp file)

if(!m_FirstToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_FirstToolBar.LoadToolBar(IDR_TOOLBAR1))
{
   EndDialog(IDCANCEL);
}

RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);
 

4.1. Here you can see the various attributes set for the toolbar in ‘CreateEx(...)’ like ‘TBSTYLE_FLAT’ for flat look of toolbar buttons;

4.2 In ‘LoadToolBar(...)’ the Resource created for the toolbar is used. This maps our toolbar object ‘m_FirstToolBar’ with resource ‘IDR_TOOLBAR1’

4.3 ‘RepositionBars()’ is used to place the toolbar on the dialog.

5) ‘MoveWindow()’ can be used to place the toolbar on the desired position.

m_FirstToolBar.MoveWindow( 50, 0,100, 100, 1 );

Now if you have finalized the place where you want to place the tool bar you can put it there using MoveWindow(...), my suggestion is to put a label in the design of dialog at place you want to put you toolbar; Then at run time get the position of this label and place the toolbar there using MoveWindow(...)

If you want to place this toolbar on Top Left and dynamically move all the controls accordingly and increase the dialog dimensions refer the article on this site I suggested above.

6)This is how the buttons of Tool Bar can be made visible/invisible

m_FirstToolBar.GetToolBarCtrl().HideButton(IDC_TBUTTON1, TRUE);

Notice that we have used the ‘IDC_TBUTTON1’ which we declared at the time of creating toolbar resource.

7) Similarly

m_FirstToolBar.GetToolBarCtrl().EnableButton(IDC_TBUTTON1,false)

can be used to disable a button.

8) To handle Click events: 8.1 Add following line to BEGIN_MESSAGE_MAP()

ON_COMMAND(IDC_TBUTTON1,OnToolBarButton1) 

8.2 Write the desired code in .cpp file

FirstToolBarDialog:: OnToolBarButton1()

{

- - - 

      - - - 

}

?
posted on 2006-10-22 13:45 @王一偉 閱讀(1669) 評論(0)  編輯 收藏 引用 所屬分類: 1. MFC
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲另类一区二区| 亚洲国产精品999| 亚洲手机在线| av成人国产| 欧美视频一区在线| 久久成人免费| 久久精品中文| 日韩视频精品在线| 一区二区黄色| 国内精品亚洲| 亚洲欧洲日韩综合二区| 欧美日韩另类视频| 午夜综合激情| 久久久久久久久久码影片| 在线欧美三区| 亚洲美女网站| 国产一区二区三区在线观看免费视频| 免费高清在线一区| 欧美女同在线视频| 久久aⅴ国产紧身牛仔裤| 久久综合色综合88| 一区二区三区免费在线观看| 亚洲一区在线免费观看| 亚洲第一中文字幕| 一本综合精品| 亚洲福利电影| 亚洲一区二区不卡免费| 亚洲三级电影在线观看| 亚洲欧美国产日韩天堂区| 亚洲韩日在线| 欧美一级理论片| 一区二区欧美日韩| 久久久之久亚州精品露出| 亚洲网站啪啪| 欧美~级网站不卡| 久久精品成人一区二区三区| 欧美激情欧美狂野欧美精品| 久久久国产精品亚洲一区| 欧美日韩精品久久| 欧美国产日韩精品| 国产亚洲激情视频在线| av成人动漫| 91久久久久久久久久久久久| 欧美一区日韩一区| 亚洲欧美另类综合偷拍| 欧美高清视频在线 | 你懂的视频一区二区| 欧美在线视频免费播放| 欧美日本网站| 欧美激情女人20p| 在线免费不卡视频| 欧美在线视频一区二区三区| 性欧美xxxx大乳国产app| 亚洲女性裸体视频| 欧美色偷偷大香| 亚洲经典在线看| 91久久精品一区二区别| 免费成人性网站| 免播放器亚洲一区| 国产亚洲欧洲997久久综合| 亚洲欧美日韩国产成人| 亚洲欧美激情视频| 国产精品区免费视频| 99re亚洲国产精品| 亚洲小说春色综合另类电影| 欧美日韩国产系列| 一本色道久久综合狠狠躁的推荐| 亚洲美女电影在线| 欧美日韩成人一区二区三区| 亚洲精品免费电影| 一区二区欧美视频| 国产精品成人观看视频国产奇米| 一区二区不卡在线视频 午夜欧美不卡在 | 免费中文字幕日韩欧美| 亚洲电影免费观看高清完整版在线观看 | 免费欧美电影| 亚洲国产另类久久精品| 亚洲美女在线看| 欧美三区美女| 亚洲欧美综合网| 乱人伦精品视频在线观看| 亚洲国产美国国产综合一区二区| 欧美成人亚洲| 这里只有精品电影| 久久久久天天天天| 亚洲破处大片| 国产精品高潮呻吟久久| 欧美一区二区国产| 中文av字幕一区| 久久在线免费视频| 禁断一区二区三区在线| 野花国产精品入口| 国产精品进线69影院| 欧美一区二区三区免费大片| 美腿丝袜亚洲色图| 这里只有精品视频| 韩日在线一区| 欧美理论片在线观看| 香蕉成人久久| 亚洲国产综合在线| 久久福利电影| 一本大道久久a久久精品综合| 国产精品激情电影| 免费观看一区| 亚洲欧美日韩爽爽影院| 亚洲第一中文字幕| 久久九九免费| 亚洲一区二区成人| 亚洲高清在线| 国产欧美亚洲视频| 欧美日韩国产综合视频在线观看中文 | 夜夜夜久久久| 免费成人黄色av| 欧美一区二区三区免费观看| 99精品视频免费| 另类激情亚洲| 欧美中文字幕在线播放| 夜夜嗨av一区二区三区免费区| 国产一区二区精品| 国产精品久久国产精品99gif | 久久香蕉国产线看观看av| 亚洲午夜激情网页| 亚洲美女av电影| 欧美/亚洲一区| 久久蜜桃资源一区二区老牛 | 久久国产综合精品| 亚洲网站在线| 一区二区三区欧美激情| 91久久精品国产91性色tv| 激情一区二区| 韩国欧美国产1区| 国产亚洲精品综合一区91| 国产精品久久久久91| 欧美人牲a欧美精品| 欧美高清在线观看| 欧美韩日一区二区三区| 免费观看日韩av| 欧美va天堂| 久久亚洲一区二区| 久久伊伊香蕉| 米奇777超碰欧美日韩亚洲| 久久久久国产精品人| 久久精品盗摄| 久久精品1区| 久久久久久网站| 欧美aⅴ99久久黑人专区| 开元免费观看欧美电视剧网站| 久久久www成人免费无遮挡大片| 欧美自拍丝袜亚洲| 久久一区二区三区av| 久久一区二区三区四区| 蜜臀久久99精品久久久久久9| 久久亚洲图片| 欧美精品高清视频| 欧美性大战久久久久| 国产精品久久久久久五月尺| 国产精品午夜春色av| 国产一区久久久| 亚洲电影免费在线观看| 亚洲精品美女| 亚洲欧美在线x视频| 久久九九电影| 亚洲国产精品成人一区二区| 亚洲免费精彩视频| 亚洲欧美成人网| 久久精品综合一区| 欧美国产日本高清在线| 欧美三级中文字幕在线观看| 国产精品视频xxxx| 亚洲国产成人久久综合| 一区二区三区日韩在线观看| 欧美一区二区三区在线播放| 老司机精品福利视频| 亚洲精品一区二区三区av| 亚洲自拍偷拍福利| 欧美77777| 国产精一区二区三区| 亚洲国产清纯| 亚洲欧美日韩一区二区| 蜜桃精品一区二区三区 | 久久av红桃一区二区小说| 欧美11—12娇小xxxx| 日韩一区二区精品在线观看| 久久国产精品99国产| 欧美喷潮久久久xxxxx| 国产一区二区三区在线免费观看| 亚洲日本欧美天堂| 久久精品中文| 亚洲一区二区黄| 欧美国产日韩一区二区在线观看 | 一区二区三区高清在线| 久久不射中文字幕| 亚洲日本黄色| 久久久精品国产一区二区三区 | 国产精品卡一卡二卡三| 亚洲欧洲日产国产综合网| 久久久精品日韩| 正在播放亚洲| 欧美日韩精品中文字幕| 亚洲国产高清视频|