CProgressCtrlDlg.h
上传用户:cn05999
上传日期:2020-06-29
资源大小:84k
文件大小:2k
- // CProgressCtrlDlg.h : header file
- //
- #if !defined(AFX_CPROGRESSCTRLDLG_H__3E71EF35_51B8_40C2_B4B6_FFDEBDC447BE__INCLUDED_)
- #define AFX_CPROGRESSCTRLDLG_H__3E71EF35_51B8_40C2_B4B6_FFDEBDC447BE__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define WM_TRAYNOTIFY WM_USER+100
- #include "ColourPicker.h"
- #include "GradientProgressCtrl.h"
- #include "AnimateTray.h"
- /////////////////////////////////////////////////////////////////////////////
- // CCProgressCtrlDlg dialog
- BOOL PeekAndPump();
- class CCProgressCtrlDlg : public CDialog
- {
- // Construction
- public:
- CCProgressCtrlDlg(CWnd* pParent = NULL); // standard constructor
- CAnimateTray m_TrayIcon;
- HICON m_hIcons[8];
- BOOL m_bClr;
- // Dialog Data
- //{{AFX_DATA(CCProgressCtrlDlg)
- enum { IDD = IDD_CPROGRESSCTRL_DIALOG };
- CColourPicker m_cClrText;
- CColourPicker m_cClrBkGnd;
- CColourPicker m_cClrEnd;
- CColourPicker m_cClrStart;
- CGradientProgressCtrl m_cProgress;
- BOOL m_bShowPercent;
- int m_range;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCProgressCtrlDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- COLORREF m_clrText,m_clrStart,m_clrEnd,m_clrBk;
- afx_msg LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam);
- // Generated message map functions
- //{{AFX_MSG(CCProgressCtrlDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnButtonTest();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnHidewindow();
- afx_msg void OnShowwindow();
- afx_msg void OnUpdateShowwindow(CCmdUI* pCmdUI);
- afx_msg void OnUpdateHidewindow(CCmdUI* pCmdUI);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CPROGRESSCTRLDLG_H__3E71EF35_51B8_40C2_B4B6_FFDEBDC447BE__INCLUDED_)