]>
git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/ExplorerPlugin/About.cpp
1 // About.cpp : implementation file
5 #include "ExplorerPlugin.h"
11 IMPLEMENT_DYNAMIC(CAbout
, CDialog
)
12 CAbout::CAbout(CWnd
* pParent
/*=NULL*/)
13 : CDialog(CAbout::IDD
, pParent
)
15 // Initialize brush with the desired background color
16 m_bkBrush
.CreateSolidBrush(RGB(255, 255, 255));
23 void CAbout::DoDataExchange(CDataExchange
* pDX
)
25 CDialog::DoDataExchange(pDX
);
26 DDX_Control(pDX
, IDC_COMPONENT
, m_componentCtrl
);
27 DDX_Control(pDX
, IDC_LEGAL
, m_legalCtrl
);
31 BEGIN_MESSAGE_MAP(CAbout
, CDialog
)
36 // CAbout message handlers
37 HBRUSH
CAbout::OnCtlColor(CDC
* pDC
, CWnd
* pWnd
, UINT nCtlColor
)
43 if ( pWnd
->GetDlgCtrlID() == IDC_COMPONENT
)
45 pDC
->SetTextColor(RGB(64, 64, 64));
49 pDC
->SetTextColor(RGB(0, 0, 0));
52 pDC
->SetBkColor(RGB(255, 255, 255));
53 return (HBRUSH
)(m_bkBrush
.GetSafeHandle());
57 return (HBRUSH
)(m_bkBrush
.GetSafeHandle());
61 return CDialog::OnCtlColor(pDC
, pWnd
, nCtlColor
);