summaryrefslogtreecommitdiffstats
path: root/src/windows/leash/LeashFrame.cpp
diff options
context:
space:
mode:
authorKevin Wasserman <kevin.wasserman@painless-security.com>2012-04-03 07:02:43 -0400
committerBen Kaduk <kaduk@mit.edu>2012-08-24 12:19:00 -0400
commit7a53399722e129ed9c00f0c37d0c20c0387c829d (patch)
tree7ccf8b6db78ba74d1333ddb24f3eb5a224f3ac7d /src/windows/leash/LeashFrame.cpp
parentaf8e75fdf9273ddd93add25d59ca05ba9b8c38ce (diff)
downloadkrb5-7a53399722e129ed9c00f0c37d0c20c0387c829d.tar.gz
krb5-7a53399722e129ed9c00f0c37d0c20c0387c829d.tar.xz
krb5-7a53399722e129ed9c00f0c37d0c20c0387c829d.zip
Prep for KfW conversion to ribbon toolbar
Upgrade classes: CWinApp->CWinAppEx, CFrameWnd->CFrameWndEx, CStatusBar->CMFCStatusBar, CToolBar->CMFCToolBar. Call AfxOleInit() from CLeashApp::InitInstance() Do not call LoadBarState() (crashes) or GetToolBarCtrl() (no longer exists) Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7244 (new) queue: kfw target_version: 1.10.4 tags: pullup
Diffstat (limited to 'src/windows/leash/LeashFrame.cpp')
-rw-r--r--src/windows/leash/LeashFrame.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/windows/leash/LeashFrame.cpp b/src/windows/leash/LeashFrame.cpp
index f7e4b56e8f..2247833047 100644
--- a/src/windows/leash/LeashFrame.cpp
+++ b/src/windows/leash/LeashFrame.cpp
@@ -31,9 +31,9 @@ const char CLeashFrame::s_profileMax[] = "max";
const char CLeashFrame::s_profileTool[] = "tool";
const char CLeashFrame::s_profileStatus[] = "status";
-IMPLEMENT_DYNAMIC(CLeashFrame, CFrameWnd)
+IMPLEMENT_DYNAMIC(CLeashFrame, CFrameWndEx)
-BEGIN_MESSAGE_MAP(CLeashFrame, CFrameWnd)
+BEGIN_MESSAGE_MAP(CLeashFrame, CFrameWndEx)
//{{AFX_MSG_MAP(CLeashFrame)
ON_WM_DESTROY()
//}}AFX_MSG_MAP
@@ -101,7 +101,7 @@ void CLeashFrame::OnDestroy()
SaveBarState(AfxGetApp()->m_pszProfileName);
- CFrameWnd::OnDestroy();
+ CFrameWndEx::OnDestroy();
}
///////////////////////////////////////////////////////////////
@@ -112,8 +112,7 @@ void CLeashFrame::ActivateFrame(int nCmdShow)
{
m_bFirstTime = FALSE;
- LoadBarState(AfxGetApp()->m_pszProfileName);
}
- CFrameWnd::ActivateFrame(nCmdShow);
+ CFrameWndEx::ActivateFrame(nCmdShow);
}