📄 mailmonitordlg.h
字号:
// MailMonitorDlg.h : header file
//
#if !defined(AFX_MAILMONITORDLG_H__CD3A8CCB_7757_4A2A_8FF7_A4D4ADEE3C89__INCLUDED_)
#define AFX_MAILMONITORDLG_H__CD3A8CCB_7757_4A2A_8FF7_A4D4ADEE3C89__INCLUDED_
#include "Pop3Check.h"
#include "resource.h"
#include "TaskbarNotifier.h"
#include "BalloonTip.h"
#include "userdata.h"
#include <afxinet.h>
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_TRAYICON (WM_USER + 212)
/////////////////////////////////////////////////////////////////////////////
// CMailMonitorDlg dialog
class CMailMonitorDlg : public CDialog
{
// Construction
public:
CMailMonitorDlg(CWnd* pParent = NULL); // standard constructor
void Dispatch(LONG param);
void showExplorer(CString url);
bool m_bIniciarMinimizado;
// Dialog Data
//{{AFX_DATA(CMailMonitorDlg)
enum { IDD = IDD_MAILMONITOR_DIALOG };
BOOL m_chk_sonido;
BOOL m_chk_iniwindows;
BOOL m_chk_inimailprg;
BOOL m_chk_guardarclave;
CString m_buscarcada;
CString m_clave;
CString m_cuenta;
CString m_servidor;
BOOL m_chk_usedefaultsound;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMailMonitorDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
LRESULT OnTrayIcon(WPARAM wParam, LPARAM lParam);
void QuitarTrayIcon();
void MostrarTrayIcon();
// Generated message map functions
//{{AFX_MSG(CMailMonitorDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSalir();
afx_msg void OnCancel();
afx_msg void OnOpciones();
afx_msg void OnDummyCheckmail();
afx_msg void OnBtnchecknow();
afx_msg void OnBtnaceptar();
afx_msg void OnBtnchoosesound();
afx_msg void OnBtnchoosemailprg();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnChkUsedefaultsound();
afx_msg void OnChkiniMailprogram();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CPop3Check pop3;
NOTIFYICONDATA tnid;
BOOL bInTrayIcon;
CMenu popUp;
CMenu * pMenu;
CTaskbarNotifier m_wndTaskbarNotifier1;
BOOL bSinErrores;
bool bManualCheck;
CBalloonTip* m_pBalloonTip;
CString m_strMsg;
bool bChecking;
userData ud;
bool IsValid(bool bShowError);
void DoCheckMail(bool bManual);
void SetReloj();
void grabaropciones();
void DoTray();
void SetTrayIcon();
void FlashTrayIcon();
bool bFlashIcon;
CInternetSession inetSession;
CString * getFile(CString);
afx_msg LRESULT OnTaskbarNotifierClicked(WPARAM wParam, LPARAM lParam);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MailMonitorDLG_H__CD3A8CCB_7757_4A2A_8FF7_A4D4ADEE3C89__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -