VC:对话框中设置工具栏的位置(LoadToolBar()、RepositionBars()、SetBarStyle())...

mac2022-06-30  25

 if (!m_toolbar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_ALIGN_BOTTOM  |CBRS_TOOLTIPS ) ||  !m_toolbar.LoadToolBar(IDR_TOOLBAR1)) {  TRACE0("Failed to create toolbar\n");  return -1;      // fail to create } RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0); m_toolbar.SetBarStyle(m_toolbar.GetBarStyle()|CBRS_BOTTOM|CBRS_SIZE_DYNAMIC|CBRS_SIZE_DYNAMIC);

转载于:https://www.cnblogs.com/shenchao/archive/2012/10/24/2737772.html

最新回复(0)