-
Notifications
You must be signed in to change notification settings - Fork 0
/
FunktionWinDlg.cpp
75 lines (55 loc) · 1.59 KB
/
FunktionWinDlg.cpp
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
//----------------------------------------------------------------------------------------------------| FunktionWinDlg.cpp von Dietmar Schrausser 2009
//
#include "stdafx.h"
#include "FunktionWin.h"
#include "FunktionWinDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
int dlg_x, dlg_y;
CFunktionWinDlg::CFunktionWinDlg(CWnd* pParent)
: CDialog(CFunktionWinDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CFunktionWinDlg)
//}}AFX_DATA_INIT
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CFunktionWinDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFunktionWinDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CFunktionWinDlg, CDialog)
//{{AFX_MSG_MAP(CFunktionWinDlg)
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL CFunktionWinDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(m_hIcon, 1); SetIcon(m_hIcon, 0); return 1;
}
void CFunktionWinDlg::OnPaint()
{
CPaintDC ooo(this);
CRect oo1(20, dlg_y-10, 25, dlg_y-20);
ooo.FillSolidRect(oo1, 13357270 );
CRect oo2(20, dlg_y-15, 25, dlg_y-25);
ooo.FillSolidRect(oo2, 8421504 );
CRect oo3(20, dlg_y-20, 25, dlg_y-30);
ooo.FillSolidRect(oo3, 13357270 );
}
HCURSOR CFunktionWinDlg::OnQueryDragIcon(){return (HCURSOR) m_hIcon;}
void CFunktionWinDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
dlg_x= cx;
dlg_y= cy;
CDialog::OnPaint();
RedrawWindow();
}