📄 dmreaderdlg.h
字号:
// DmReaderDlg.h : header file
//
//{{AFX_INCLUDES()
#include "shockwaveflash.h"
//}}AFX_INCLUDES
#if !defined(AFX_DMREADERDLG_H__CB3FCDBD_0104_4CF7_8529_637D5903DF68__INCLUDED_)
#define AFX_DMREADERDLG_H__CB3FCDBD_0104_4CF7_8529_637D5903DF68__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CDmReaderDlg dialog
class CDmReaderDlg : public CDialog
{
public:
CDmReaderDlg(CWnd* pParent = NULL); // standard constructor
// -<与自定义标题条相关>-
public:
CRect m_rtIcon; // 图标位置
CRect m_rtButtExit; // 关闭按钮位置
CRect m_rtButtMax; // 最大化按钮位置
CRect m_rtButtMin; // 最小化按钮位置
CRect m_rtButtFull; // 全屏幕
CRect m_rtButtBestView; // 1:1
CRect m_rtButtMeun; // 菜单按钮
CString m_sTitle; // 标题
BOOL m_bFullScreen; // 是否全屏幕
void DrawTitleBar(CDC *pDC);
CRect m_rtFlash;
public:
BOOL IsFlash(CString strPath);
CString Convert16To2(CString strSource);
long Convert2To10(CString strBuff);
BOOL GetRect(CString path,CRect &rt);
BOOL GetRect(int nCode,BYTE *pBytes,CRect &rt);
long GetReadSize(int nCode);
CString CreateBookTempDir();
CString GetDecryBook(LPCTSTR lpszBook);
void FitRgn();
void OnMenuBestShow();
void OnMenuFullScreen();
void OnMenuAbout();
void OnOK();
void OnCancel();
void FitControls();
CString m_sBookFile;
int m_nLenX;
int m_nLenY;
// Dialog Data
//{{AFX_DATA(CDmReaderDlg)
enum { IDD = IDD_DMREADER_DIALOG };
CShockwaveFlash m_flash;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDmReaderDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDmReaderDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
afx_msg void OnOnReadyStateChangeShockwaveflash1(long newState);
afx_msg void OnOnProgressShockwaveflash1(long percentDone);
afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
afx_msg void OnAbout();
afx_msg void OnFlashCallShockwaveflash1(LPCTSTR request);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DMREADERDLG_H__CB3FCDBD_0104_4CF7_8529_637D5903DF68__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -