-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplashDialog.h
65 lines (50 loc) · 1.35 KB
/
SplashDialog.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
#pragma once
#include "atlimage.h"
// CTransparentStatic
class CTransparentStatic : public CStatic
{
DECLARE_DYNAMIC(CTransparentStatic)
public:
CTransparentStatic();
virtual ~CTransparentStatic();
void AppendWindowText(TCHAR* lpszText);
void SetTextColor(COLORREF color);
protected:
afx_msg void OnPaint();
afx_msg LRESULT OnSetText(WPARAM,LPARAM);
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
DECLARE_MESSAGE_MAP()
private:
CBitmap m_Bmp;
COLORREF m_colorText;
};
// CSplashDialog dialog
class CSplashDialog : public CDialog
{
DECLARE_DYNAMIC(CSplashDialog)
// private members
private:
CRect m_rectWindow;
CSize m_sizeOffset;
CSize m_sizeBackground;
CImage m_imgBackground;
CTransparentStatic m_staticStep;
CTransparentStatic m_staticStepStatus;
public:
CSplashDialog(CWnd* pParent = NULL); // standard constructor
virtual ~CSplashDialog();
void SetStep(int nStepProgress, TCHAR* lpszStepText);
// Dialog Data
enum { IDD = IDD_SPLASHDIALOG };
private:
void CalculateOffset();
void SetBackground();
void SetProgresBarAndLabel();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
DECLARE_MESSAGE_MAP()
};