Use the new branding for the icons.
Set the dialog box icon appropriately too.
This commit is contained in:
parent
94b4883cd2
commit
a9349d5d8b
|
@ -32,6 +32,16 @@ CMainDlg::CMainDlg(bool move_window)
|
||||||
this->SetTitle(m_strTitle);
|
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)
|
LRESULT CMainDlg::OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||||
{
|
{
|
||||||
bool restart_service = false;
|
bool restart_service = false;
|
||||||
|
|
|
@ -44,6 +44,8 @@ class CMainDlg : public CPropertySheetImpl<CMainDlg>
|
||||||
void OnMove(CPoint);
|
void OnMove(CPoint);
|
||||||
void PositionWindow();
|
void PositionWindow();
|
||||||
|
|
||||||
|
void OnSheetInitialized();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Pass true if you want the window to be moved to near the mouse pointer.
|
// 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
|
// 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 |
Loading…
Reference in New Issue