]>
git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/ExplorerPlugin/About.cpp
1 // About.cpp : implementation file
5 #include "ExplorerPlugin.h"
7 #include "WinVersRes.h"
8 #include <DebugServices.h>
13 IMPLEMENT_DYNAMIC(CAbout
, CDialog
)
14 CAbout::CAbout(CWnd
* pParent
/*=NULL*/)
15 : CDialog(CAbout::IDD
, pParent
)
17 // Initialize brush with the desired background color
18 m_bkBrush
.CreateSolidBrush(RGB(255, 255, 255));
25 void CAbout::DoDataExchange(CDataExchange
* pDX
)
27 CDialog::DoDataExchange(pDX
);
28 DDX_Control(pDX
, IDC_COMPONENT
, m_componentCtrl
);
29 DDX_Control(pDX
, IDC_LEGAL
, m_legalCtrl
);
33 BEGIN_MESSAGE_MAP(CAbout
, CDialog
)
38 // CAbout message handlers
40 CAbout::OnInitDialog()
42 BOOL b
= CDialog::OnInitDialog();
44 CStatic
* control
= (CStatic
*) GetDlgItem( IDC_ABOUT_BACKGROUND
);
49 control
->SetBitmap( ::LoadBitmap( GetNonLocalizedResources(), MAKEINTRESOURCE( IDB_ABOUT
) ) );
52 control
= ( CStatic
* ) GetDlgItem( IDC_COMPONENT_VERSION
);
57 control
->SetWindowText( TEXT( MASTER_PROD_VERS_STR2
) );
64 HBRUSH
CAbout::OnCtlColor(CDC
* pDC
, CWnd
* pWnd
, UINT nCtlColor
)
70 if ( pWnd
->GetDlgCtrlID() == IDC_COMPONENT
)
72 pDC
->SetTextColor(RGB(64, 64, 64));
76 pDC
->SetTextColor(RGB(0, 0, 0));
79 pDC
->SetBkColor(RGB(255, 255, 255));
80 return (HBRUSH
)(m_bkBrush
.GetSafeHandle());
84 return (HBRUSH
)(m_bkBrush
.GetSafeHandle());
88 return CDialog::OnCtlColor(pDC
, pWnd
, nCtlColor
);