From abb74c2c73658f131590968f8aecb369b1e6186c Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:27:27 +0000 Subject: [PATCH] --- Common/DialogBarEx.cpp | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Common/DialogBarEx.cpp diff --git a/Common/DialogBarEx.cpp b/Common/DialogBarEx.cpp new file mode 100644 index 0000000..8837337 --- /dev/null +++ b/Common/DialogBarEx.cpp @@ -0,0 +1,58 @@ +// DialogBarEx.cpp : implementation file +// + +#include "stdafx.h" +#include "DialogBarEx.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CDialogBarEx + + +#define WM_INITDIALOGBAR WM_APP + 1 + +BEGIN_MESSAGE_MAP(CDialogBarEx, CDialogBar) + //{{AFX_MSG_MAP(CDialogBarEx) + ON_WM_CREATE() + ON_MESSAGE(WM_INITDIALOGBAR , InitDialogBarHandler ) + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + + +CDialogBarEx::CDialogBarEx() +{ +} + +CDialogBarEx::~CDialogBarEx() +{ +} + +///////////////////////////////////////////////////////////////////////////// +// CDialogBarEx message handlers + +int CDialogBarEx::OnCreate(LPCREATESTRUCT lpCreateStruct) +{ + if (CDialogBar::OnCreate(lpCreateStruct) == -1) + return -1; + + PostMessage(WM_INITDIALOGBAR , 0 , 0 ); + + return 0; +} + + +void CDialogBarEx::InitDialogBarHandler(WORD wParam, DWORD lParam) +{ + UpdateData(FALSE); + OnInitDialogBar() ; +} + +void CDialogBarEx::OnInitDialogBar() +{ + +}