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

Method SetupTrayIcon

ColorCop/ColorCopDlg.cpp:716–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716void CColorCopDlg::SetupTrayIcon() {
717 if (bMinimized && (pTrayIcon_ == 0) && (m_Appflags & MinimizetoTray)) {
718 CString strAppName;
719 strAppName.LoadString(IDS_APPLICATION_NAME);
720
721 pTrayIcon_ = new CSystemTray;
722 pTrayIcon_->Create(0, nTrayNotificationMsg_, strAppName,
723 hIcon_, IDR_SYSTRAY_MENU);
724 } else {
725 delete pTrayIcon_;
726 pTrayIcon_ = 0;
727 }
728}
729
730void CColorCopDlg::OnPaint() {
731 if (IsIconic()) {

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.80

Tested by

no test coverage detected