-
Notifications
You must be signed in to change notification settings - Fork 0
/
PrintChipDialog.h
74 lines (58 loc) · 1.78 KB
/
PrintChipDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#if !defined(AFX_PRINTCHIPDIALOG_H__84BBBA33_15CB_11D3_9322_004005469C82__INCLUDED_)
#define AFX_PRINTCHIPDIALOG_H__84BBBA33_15CB_11D3_9322_004005469C82__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrintChipDialog.h : ヘッダー ファイル
//
class CMemoData;
/////////////////////////////////////////////////////////////////////////////
// CPrintChipDialog ダイアログ
class CPrintChipDialog : public CDialog
{
// コンストラクション
public:
CPrintChipDialog( HDC& hPrinterDC, RECT& stRctMargin, CWnd* pParent = NULL); // 標準のコンストラクタ
~CPrintChipDialog( void);
BOOL AddPrintChip( const CMemoData* pcMemoData);
// ダイアログ データ
//{{AFX_DATA(CPrintChipDialog)
enum { IDD = IDD_PRINTCHIPDLG };
CStatic m_cStcTitle;
CButton m_cBtnCancel;
CProgressCtrl m_cPrgrsPrintChip;
//}}AFX_DATA
// オーバーライド
// ClassWizard は仮想関数のオーバーライドを生成します。
//{{AFX_VIRTUAL(CPrintChipDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV サポート
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// インプリメンテーション
protected:
CList <CMemoData*, CMemoData*&> m_cLstMemoData;
HANDLE m_hCancelEvent;
HDC m_hPrinterDC;
RECT m_stRctMargin;
static UINT sm_unNotifyEnd;
// 生成されたメッセージ マップ関数
//{{AFX_MSG(CPrintChipDialog)
virtual BOOL OnInitDialog();
virtual void OnCancel();
//}}AFX_MSG
afx_msg LONG OnNotifyEnd( UINT wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
protected:
enum
{
RESULT_SUCCESS,
RESULT_ERROR,
RESULT_ABORT
};
friend void PrintChipThread( void* lpvData);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。
void PrintChipThread( void* lpvData);
#endif // !defined(AFX_PRINTCHIPDIALOG_H__84BBBA33_15CB_11D3_9322_004005469C82__INCLUDED_)