-
Notifications
You must be signed in to change notification settings - Fork 1
/
WaterMarkerDlg.h
154 lines (136 loc) · 4.42 KB
/
WaterMarkerDlg.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// WaterMarkerDlg.h : header file
//
#if !defined(AFX_WATERMARKERDLG_H__415B120C_ABF3_4FF7_9E36_E8A6EDFB8BAF__INCLUDED_)
#define AFX_WATERMARKERDLG_H__415B120C_ABF3_4FF7_9E36_E8A6EDFB8BAF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include ".\CxImage\CxImage\ximage.h"
#include "CPathSplit.h"
#include "DiskObject.h"
#include "EditLabel.h"
#include "GroupControl.h"
/////////////////////////////////////////////////////////////////////////////
// CWaterMarkerDlg dialog
class CWaterMarkerDlg : public CDialog
{
// Construction
public:
CWaterMarkerDlg(CWnd* pParent = NULL); // standard constructor
CString m_oStrAppPath;
CDiskObject m_oDiskObject;
CPathSplit m_oPathSplitter;
int m_nOffsetX;
int m_nOffsetY;
CxImage m_oImgFileStamp;
CxImage m_oImgFileSrc;
// Dialog Data
//{{AFX_DATA(CWaterMarkerDlg)
enum { IDD = IDD_WATERMARKER_DIALOG };
CSpinButtonCtrl m_oSpinRedimAvant;
CSpinButtonCtrl m_oSpinRedimApres;
CSpinButtonCtrl m_oSpinQualDst;
CSpinButtonCtrl m_oSpinHaut;
CSpinButtonCtrl m_oSpinGauche;
CSpinButtonCtrl m_oSpinDroite;
CSpinButtonCtrl m_oSpinBas;
CSpinButtonCtrl m_oSpinAlpha;
CSliderCtrl m_oSliderRedimAvant;
CSliderCtrl m_oSliderRedimApres;
CEditLabel m_oEditPathSrc;
CEditLabel m_oEditPathDst;
CEditLabel m_oEditFileStamp;
CGroupControl m_oGroupRun;
CGroupControl m_oGroupConfig;
CSliderCtrl m_oSliderAlpha;
CStatic m_oRectStamp;
CStatic m_oRectFinal;
CButton m_oButtonRun;
CEdit m_oWndQualDst;
CStatic m_oWndStatus;
CStatic m_oWndProgress;
CStatic m_oBmpStamp;
CStatic m_oBmpFinal;
CSliderCtrl m_oSliderQualDst;
CComboBox m_oComboTypeSrc;
CComboBox m_oComboTypeDst;
CString m_oStrPathSrc;
CString m_oStrPathDst;
CString m_oStrFileStamp;
BOOL m_bAlpha;
BOOL m_bTile;
CString m_oStrBas;
CString m_oStrDroite;
CString m_oStrGauche;
CString m_oStrHaut;
CString m_oStrRedimApres;
CString m_oStrRedimAvant;
CString m_oStrQualDst;
CString m_oStrAlpha;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWaterMarkerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
HBITMAP m_hBmpStamp;
HBITMAP m_hBmpFinal;
BOOL m_bStop;
int m_nOffsetBas;
int m_nOffsetDroite;
int m_nOffsetGauche;
int m_nOffsetHaut;
int m_nQualDst;
int m_nAlpha;
int m_nRedimAvant;
int m_nRedimApres;
void VerifRun(void);
int ListeFichiers(CStringArray& o_raoListeFichiers, CString i_oStrRepertoire, CString i_oStrHeader, CString i_oStrExtensions, BOOL i_bConcatenate = TRUE);
CString GetExtFromType(int i_nDocType);
// Generated message map functions
//{{AFX_MSG(CWaterMarkerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnChangeEditPathSrc();
afx_msg void OnButtonPathSrc();
afx_msg void OnSelchangeComboTypeSrc();
afx_msg void OnChangeEditFileStamp();
afx_msg void OnButtonFileStamp();
afx_msg void OnChangeEditPathDst();
afx_msg void OnButtonPathDst();
afx_msg void OnSelchangeComboTypeDst();
afx_msg void OnChangeEditQualDst();
afx_msg void OnReleasedcaptureSliderQualDst(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnChangeEditHaut();
afx_msg void OnChangeEditBas();
afx_msg void OnChangeEditGauche();
afx_msg void OnChangeEditDroite();
afx_msg void OnButtonCsg();
afx_msg void OnButtonH();
afx_msg void OnButtonCsd();
afx_msg void OnButtonG();
afx_msg void OnButtonC();
afx_msg void OnButtonD();
afx_msg void OnButtonCig();
afx_msg void OnButtonB();
afx_msg void OnButtonCid();
afx_msg void OnDestroy();
afx_msg void OnButtonRun();
afx_msg void OnChangeEditAlpha();
afx_msg void OnReleasedcaptureSliderAlpha(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnCheckAlpha();
afx_msg void OnChangeEditRedimAvant();
afx_msg void OnReleasedcaptureSliderRedimAvant(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnChangeEditRedimApres();
afx_msg void OnReleasedcaptureSliderRedimApres(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnCheckTile();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WATERMARKERDLG_H__415B120C_ABF3_4FF7_9E36_E8A6EDFB8BAF__INCLUDED_)