OSDN Git Service

Further tweak to sizecbar.*
authorGreyMerlin <GreyMerlin7@gmail.com>
Sat, 13 Oct 2018 15:30:03 +0000 (08:30 -0700)
committerGreyMerlin <GreyMerlin7@gmail.com>
Mon, 15 Oct 2018 18:20:58 +0000 (11:20 -0700)
* Eliminate "old creation method" as it is no longer used or needed.

Src/Common/sizecbar.cpp
Src/Common/sizecbar.h

index 125a415..38e5810 100644 (file)
@@ -116,18 +116,6 @@ BEGIN_MESSAGE_MAP(CSizingControlBar, baseCSizingControlBar)
     ON_MESSAGE(WM_SETTEXT, OnSetText)
 END_MESSAGE_MAP()
 
-// old creation method, still here for compatibility reasons
-BOOL CSizingControlBar::Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
-                               CSize sizeDefault, BOOL bHasGripper,
-                               UINT nID, DWORD dwStyle)
-{
-    UNUSED_ALWAYS(bHasGripper);
-
-    m_szHorz = m_szVert = m_szFloat = sizeDefault;
-    return Create(lpszWindowName, pParentWnd, nID, dwStyle);
-}
-
-// preffered creation method
 BOOL CSizingControlBar::Create(LPCTSTR lpszWindowName,
                                CWnd* pParentWnd, UINT nID,
                                DWORD dwStyle)
index 77873f9..144e947 100644 (file)
@@ -81,9 +81,6 @@ public:
     CSizingControlBar();
 
     virtual BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
-        CSize sizeDefault, BOOL bHasGripper,
-        UINT nID, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP);
-    virtual BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
         UINT nID, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP);
 
 // Attributes