MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / SetIcon

Method SetIcon

ColorCop/SystemTray.cpp:155–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155BOOL CSystemTray::SetIcon(HICON hIcon) {
156 if (!m_bEnabled) return FALSE;
157
158 m_tnd.uFlags = NIF_ICON;
159 m_tnd.hIcon = hIcon;
160
161 return Shell_NotifyIcon(NIM_MODIFY, &m_tnd);
162}
163
164BOOL CSystemTray::SetIcon(LPCTSTR lpszIconName) {
165 HICON hIcon = AfxGetApp()->LoadIcon(lpszIconName);

Callers 7

OnInitDialogMethod · 0.80
StopCaptureMethod · 0.80
OnLButtonDownMethod · 0.80
ChangeTo3x3SamplingMethod · 0.80
ChangeTo5x5SamplingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected