| 714 | } |
| 715 | |
| 716 | void 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 | |
| 730 | void CColorCopDlg::OnPaint() { |
| 731 | if (IsIconic()) { |