From 31ee773757df1c85399cb06135b7c48129a2b327 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 28 Sep 2005 19:07:56 +0000 Subject: Removed the option to disable the piece preview, it's always enabled now. git-svn-id: http://svn.leocad.org/trunk@422 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Piecebar.cpp | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'win/Piecebar.cpp') diff --git a/win/Piecebar.cpp b/win/Piecebar.cpp index bbcc808..1578721 100644 --- a/win/Piecebar.cpp +++ b/win/Piecebar.cpp @@ -22,9 +22,7 @@ static char THIS_FILE[] = __FILE__; CPiecesBar::CPiecesBar() { - int i = AfxGetApp()->GetProfileInt("Settings", "Piecebar Options", - PIECEBAR_PREVIEW|PIECEBAR_GROUP|PIECEBAR_COMBO|PIECEBAR_ZOOMPREVIEW); - m_bPreview = (i & PIECEBAR_PREVIEW) != 0; + int i = AfxGetApp()->GetProfileInt("Settings", "Piecebar Options", PIECEBAR_GROUP|PIECEBAR_COMBO); m_bSubParts = (i & PIECEBAR_SUBPARTS) != 0; m_bGroups = (i & PIECEBAR_GROUP) != 0; m_bCombo = (i & PIECEBAR_COMBO) != 0; @@ -610,23 +608,13 @@ void CPiecesBar::OnSize(UINT nType, int cx, int cy) else m_wndGroupsBar.ShowWindow (SW_HIDE); - if (m_bPreview) - { - m_wndSplitter.SetWindowPos (NULL, 5, m_nPreviewHeight+6, cx-10, 4, SWP_NOZORDER); - m_wndPiecesList.SetWindowPos (NULL, 5, m_nPreviewHeight+10, cx-10, cy-off-15-m_nPreviewHeight, SWP_NOZORDER); - m_PiecesTree.SetWindowPos (NULL, 5, m_nPreviewHeight+10, cx-10, cy-off-15-m_nPreviewHeight, SWP_NOZORDER); - m_wndPiecePreview.SetWindowPos (NULL, 5, 5, cx-10, m_nPreviewHeight, 0); - m_wndPiecePreview.EnableWindow (TRUE); - m_wndPiecePreview.ShowWindow (SW_SHOW); - m_wndSplitter.ShowWindow (SW_SHOW); - } - else - { - m_wndSplitter.ShowWindow (SW_HIDE); - m_wndPiecesList.SetWindowPos (NULL, 5, 5, cx-10, cy-off-10, SWP_NOZORDER); - m_wndPiecePreview.ShowWindow (SW_HIDE); - m_wndPiecePreview.EnableWindow (FALSE); - } + m_wndSplitter.SetWindowPos (NULL, 5, m_nPreviewHeight+6, cx-10, 4, SWP_NOZORDER); + m_wndPiecesList.SetWindowPos (NULL, 5, m_nPreviewHeight+10, cx-10, cy-off-15-m_nPreviewHeight, SWP_NOZORDER); + m_PiecesTree.SetWindowPos (NULL, 5, m_nPreviewHeight+10, cx-10, cy-off-15-m_nPreviewHeight, SWP_NOZORDER); + m_wndPiecePreview.SetWindowPos (NULL, 5, 5, cx-10, m_nPreviewHeight, 0); + m_wndPiecePreview.EnableWindow (TRUE); + m_wndPiecePreview.ShowWindow (SW_SHOW); + m_wndSplitter.ShowWindow (SW_SHOW); RECT rect; m_wndPiecesList.GetWindowRect (&rect); -- cgit v1.2.3