📄 helperdlg.h
字号:
// HelperDlg.h : header file
//
#if !defined(AFX_HELPERDLG_H__647496EE_45E7_43A7_8B49_3DD34190D9AF__INCLUDED_)
#define AFX_HELPERDLG_H__647496EE_45E7_43A7_8B49_3DD34190D9AF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "bcmenu.h"
#include "SettimerDlg.h" // Added by ClassView
/////////////////////////////////////////////////////////////////////////////
// CHelperDlg dialog
#define HELPER_TIMER_CREATE 1
#define HELPER_TIMER_QUICKREMIND 2
#define HELPER_TIMER_SETTIMER 3
#define HELPER_TIMELAG_CREATE 100
#define HELPER_TIMELAG_QUICKREMIND 500
#define HELPER_TIMELAG_SETTIMER 1000
#define WM_CLICK_TRAYICON WM_USER+994
class CHelperDlg : public CWnd
{
// Construction
public:
void MakePathName(LPSTR pathname, LPCTSTR filename, LPCTSTR ext);
BOOL GetSourceHtml(CString theUrl, CString theFile);
// BCMenu m_menu;
THINGTOREMIND m_structThing;
CArray<THINGTOREMIND, THINGTOREMIND> m_arrayThing;
// CArray<CPoint, CPoint&> m_ptArray;// CArray<CPoint, CPoint> m_arrayThing;
BOOL m_bShow;
DWORD m_nSetTime;
CString m_strThingToRemind;
DWORD m_nSettimerBegin;
BOOL LoadBMPImage( LPCTSTR sBMPFile, CBitmap& bitmap, CPalette *pPal );
int m_nCurrentSecond;
int m_nSecondDigit2;
int m_nSecondDigit1;
int m_nMinuteDigit2;
int m_nMinuteDigit1;
int m_nHourDigit2;
int m_nHourDigit1;
void OnClickTrayIcon(WPARAM wParam,LPARAM lParam);
int m_nNumBeginY;
int m_nNumBeginX;
CBitmap m_bmpNumber;
CBitmap m_bmpFrame;
SetFrame(CDC* pDC);
void CreateTransparentDialog(LPCTSTR pTitle);
CHelperDlg(); // standard constructor
~CHelperDlg();
// Dialog Data
//{{AFX_DATA(CHelperDlg)
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHelperDlg)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CHelperDlg)
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnExit();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnMenuSettimer();
afx_msg void OnMenuQuickremind();
afx_msg void OnMenuShow();
afx_msg void OnMenuAbout();
afx_msg void OnClose();
afx_msg void OnMenuAlwaysontop();
afx_msg void OnDestroy();
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnMenuDownload();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void ReadArrayThingFromFile();
void WriteArrayThingToFile();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HELPERDLG_H__647496EE_45E7_43A7_8B49_3DD34190D9AF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -