Use the new branding for the icons.

Set the dialog box icon appropriately too.
This commit is contained in:
Mike Crowe 2006-05-30 17:30:58 +00:00
parent 94b4883cd2
commit a9349d5d8b
5 changed files with 12 additions and 0 deletions

View File

@ -32,6 +32,16 @@ CMainDlg::CMainDlg(bool move_window)
this->SetTitle(m_strTitle);
}
void CMainDlg::OnSheetInitialized()
{
HICON hIcon = (HICON)::LoadImage(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDR_MAINFRAME),
IMAGE_ICON, ::GetSystemMetrics(SM_CXICON), ::GetSystemMetrics(SM_CYICON), LR_DEFAULTCOLOR);
SetIcon(hIcon, TRUE);
HICON hIconSmall = (HICON)::LoadImage(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDR_MAINFRAME),
IMAGE_ICON, ::GetSystemMetrics(SM_CXSMICON), ::GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR);
SetIcon(hIconSmall, FALSE);
}
LRESULT CMainDlg::OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
{
bool restart_service = false;

View File

@ -44,6 +44,8 @@ class CMainDlg : public CPropertySheetImpl<CMainDlg>
void OnMove(CPoint);
void PositionWindow();
void OnSheetInitialized();
public:
// Pass true if you want the window to be moved to near the mouse pointer.
// This is usually only the case if the window is displayed as a result of

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB