// 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 setSmallIcon void unsetSmallIcon(HWND i_hwnd) { HICON hicon = setSmallIcon(i_hwnd, -1); if (hicon) CHECK_TRUE( DestroyIcon(hicon) ); }