// WM_INITDIALOG BOOL wmInitDialog(HWND /* i_focus */) { SetWindowTextW(GetDlgItem(m_hwnd, IDC_PROMPT), m_prompt.c_str()); setSmallIcon(m_hwnd, IDI_ASK_PASS); setBigIcon(m_hwnd, IDI_ASK_PASS); return TRUE; }
// remove icon from a window that is set by setBigIcon void unsetBigIcon(HWND i_hwnd) { HICON hicon = setBigIcon(i_hwnd, -1); if (hicon) CHECK_TRUE( DestroyIcon(hicon) ); }