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;