mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Fixed toolbar position not getting saved correctly.
This commit is contained in:
+3
-3
@@ -186,7 +186,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
||||
return -1; // fail to create
|
||||
}
|
||||
|
||||
m_wndStandardBar.SetWindowText (_T("Standard"));
|
||||
m_wndStandardBar.SetWindowText(_T("Standard"));
|
||||
m_wndStandardBar.EnableDocking(CBRS_ALIGN_ANY);
|
||||
|
||||
CMenu PopupMenus;
|
||||
@@ -208,7 +208,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
||||
return -1; // fail to create
|
||||
}
|
||||
|
||||
m_wndToolsBar.SetWindowText (_T("Drawing"));
|
||||
m_wndToolsBar.SetWindowText(_T("Drawing"));
|
||||
m_wndToolsBar.EnableDocking(CBRS_ALIGN_ANY);
|
||||
|
||||
if (!m_wndAnimationBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, CRect(1, 1, 1, 1), ID_VIEW_ANIMATION_BAR) ||
|
||||
@@ -244,7 +244,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
||||
|
||||
// UpdateMenuAccelerators();
|
||||
|
||||
if (m_wndInvisibleToolBar.Create(this))
|
||||
if (m_wndInvisibleToolBar.Create(this, AFX_DEFAULT_TOOLBAR_STYLE, ID_VIEW_INVISIBLE_BAR))
|
||||
{
|
||||
VERIFY(m_wndInvisibleToolBar.LoadToolBar(IDR_INVISIBLE));
|
||||
}
|
||||
|
||||
+2
-1
@@ -667,7 +667,8 @@
|
||||
#define ID_VIEW_TOOLS_BAR 59426
|
||||
#define ID_VIEW_ANIMATION_BAR 59427
|
||||
#define ID_VIEW_PROPERTIES_BAR 59428
|
||||
#define ID_VIEW_MODIFY_BAR 59429
|
||||
#define ID_VIEW_INVISIBLE_BAR 59429
|
||||
#define ID_VIEW_MODIFY_BAR 59430
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user