]>
git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/ExplorerPlugin/About.cpp
1 // About.cpp : implementation file
5 #include "ExplorerPlugin.h"
7 #include <DebugServices.h>
12 IMPLEMENT_DYNAMIC(CAbout
, CDialog
)
13 CAbout::CAbout(CWnd
* pParent
/*=NULL*/)
14 : CDialog(CAbout::IDD
, pParent
)
16 // Initialize brush with the desired background color
17 m_bkBrush
.CreateSolidBrush(RGB(255, 255, 255));
24 void CAbout::DoDataExchange(CDataExchange
* pDX
)
26 CDialog::DoDataExchange(pDX
);
27 DDX_Control(pDX
, IDC_COMPONENT
, m_componentCtrl
);
28 DDX_Control(pDX
, IDC_LEGAL
, m_legalCtrl
);
32 BEGIN_MESSAGE_MAP(CAbout
, CDialog
)
37 // CAbout message handlers
39 CAbout::OnInitDialog()
41 BOOL b
= CDialog::OnInitDialog();
43 CStatic
* control
= (CStatic
*) GetDlgItem( IDC_ABOUT_BACKGROUND
);
48 control
->SetBitmap( ::LoadBitmap( GetNonLocalizedResources(), MAKEINTRESOURCE( IDB_ABOUT
) ) );
55 HBRUSH
CAbout::OnCtlColor(CDC
* pDC
, CWnd
* pWnd
, UINT nCtlColor
)
61 if ( pWnd
->GetDlgCtrlID() == IDC_COMPONENT
)
63 pDC
->SetTextColor(RGB(64, 64, 64));
67 pDC
->SetTextColor(RGB(0, 0, 0));
70 pDC
->SetBkColor(RGB(255, 255, 255));
71 return (HBRUSH
)(m_bkBrush
.GetSafeHandle());
75 return (HBRUSH
)(m_bkBrush
.GetSafeHandle());
79 return CDialog::OnCtlColor(pDC
, pWnd
, nCtlColor
);