📄 dlgpreparent.h
字号:
#if !defined(AFX_DLGPREPARENT_H__FFE3F959_3E07_4F9F_A5EF_EFF7C91C4732__INCLUDED_)
#define AFX_DLGPREPARENT_H__FFE3F959_3E07_4F9F_A5EF_EFF7C91C4732__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgPreparent.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgPreparent dialog
#include "DlgPreview.h"
class CDlgPreparent : public CDialog
{
// Construction
public:
void SetCallBackFun(PRINTPREVIEW pFun, PRNINFO sPrnInfo);
CDlgPreparent(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgPreparent)
enum { IDD = IDD_PREPARENT };
CListBox m_list;
CStatic m_down;
CStatic m_up;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgPreparent)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
PRINTPREVIEW pDrawInfo;
PRNINFO PrnInfo;
HICON m_hIcon;
CToolBar m_wndtoolbar;
CRect m_TbRect;
CRect rcClient;
CDlgPreview *pPreView;
int m_nCount; //共多少行数据
int m_OneCount, m_NextCount; //第一页的行数, 其它页的行数
int m_PosPage; //当前页
int m_nCountPage; //共有多少页;
static WNDPROC wpListProc;
static HWND hPrvWnd;
static LRESULT CALLBACK ListProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void UpdatePreViewWnd();
// Generated message map functions
//{{AFX_MSG(CDlgPreparent)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnExit();
afx_msg void OnGoto();
afx_msg void OnLast();
afx_msg void OnNext();
afx_msg void OnPrevious();
afx_msg void OnPrint();
afx_msg void OnTop();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGPREPARENT_H__FFE3F959_3E07_4F9F_A5EF_EFF7C91C4732__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -