123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #pragma once
- #define USE_TRAYICON 1
- #if USE_TRAYICON
- #include "ItrayIcon.h"
- #endif
- class ClyfzServerDlg : public CDialogEx
- {
- public:
- ClyfzServerDlg(CWnd* pParent = NULL);
- enum { IDD = IDD_LYFZSERVER_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX);
- #if USE_TRAYICON
- void InitTrayIcon();
-
- BOOL m_isNotify;
-
- BOOL m_bShowNc;
-
- BOOL m_bNoticeTray;
-
- ITrayIcon m_trayIcon;
- afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
- afx_msg LRESULT OnTaskBarCreated(WPARAM wp, LPARAM lp);
- void TaskNotifyIcon();
- void TrayRight();
- #endif
- protected:
- HICON m_hIcon;
-
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnExit();
- afx_msg void OnBnClickedOk();
- afx_msg void OnBnClickedCancel();
-
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- };
|