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
|
// cdxCDynamicChildDlg.cpp : implementation file
//
#include "stdafx.h"
#include "cdxCDynamicDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// cdxCDynamicDialog dialog
/////////////////////////////////////////////////////////////////////////////
IMPLEMENT_DYNAMIC(cdxCDynamicDialog,CDialog);
/////////////////////////////////////////////////////////////////////////////
// message map
/////////////////////////////////////////////////////////////////////////////
BEGIN_MESSAGE_MAP(cdxCDynamicDialog, CDialog)
//{{AFX_MSG_MAP(cdxCDynamicDialog)
ON_WM_GETMINMAXINFO()
ON_WM_DESTROY()
ON_WM_PARENTNOTIFY()
ON_WM_SIZE()
ON_WM_SIZING()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// cdxCDynamicDialog message handlers: redirect stuff to my class :)=
/////////////////////////////////////////////////////////////////////////////
BOOL cdxCDynamicDialog::OnInitDialog()
{
BOOL bOK = CDialog::OnInitDialog();
DoInitWindow(*this);
return bOK;
}
BOOL cdxCDynamicDialog::DestroyWindow()
{
DoOnDestroy();
return CDialog::DestroyWindow();
}
void cdxCDynamicDialog::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
CDialog::OnGetMinMaxInfo(lpMMI);
DoOnGetMinMaxInfo(lpMMI);
}
void cdxCDynamicDialog::OnDestroy()
{
DoOnDestroy();
CDialog::OnDestroy();
}
void cdxCDynamicDialog::OnParentNotify(UINT message, LPARAM lParam)
{
CDialog::OnParentNotify(message, lParam);
DoOnParentNotify(message, lParam);
}
void cdxCDynamicDialog::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
DoOnSize(nType, cx, cy);
}
void cdxCDynamicDialog::OnSizing(UINT fwSide, LPRECT pRect)
{
CDialog::OnSizing(fwSide, pRect);
DoOnSizing(fwSide, pRect);
}
void cdxCDynamicDialog::OnTimer(UINT idEvent)
{
CDialog::OnTimer(idEvent);
DoOnTimer(idEvent);
}
/////////////////////////////////////////////////////////////////////////////
// cdxCDynamicChildDlg dialog
/////////////////////////////////////////////////////////////////////////////
IMPLEMENT_DYNAMIC(cdxCDynamicChildDlg,cdxCDynamicDialog);
/////////////////////////////////////////////////////////////////////////////
// message map
/////////////////////////////////////////////////////////////////////////////
|