-
Notifications
You must be signed in to change notification settings - Fork 1
/
ImportUIBase.cpp
77 lines (59 loc) · 1.59 KB
/
ImportUIBase.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
76
77
/*//////////////////////////////////////////////////////////////////////////////
// Name: importuibase.cpp
// Purpose: Implementation of CImportUIBase
// Author: Ruediger Herrmann
// Copyright: (c) Ruediger Herrmann
//////////////////////////////////////////////////////////////////////////////*/
#include "stdafx.h"
#include "easycashdoc.h"
#include "resource.h"
#include "module.h"
#include "ResizableDialog.h"
#include "ImportUIBase.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CImportUIBase::CImportUIBase( UINT nIDTemplate, CWnd* pParentWnd )
: CResizableDialog ( nIDTemplate, pParentWnd )
{
m_CurrentImportParams = NULL;
}
CImportUIBase::~CImportUIBase()
{
}
void CImportUIBase::DoDataExchange(CDataExchange* pDX)
{
CResizableDialog::DoDataExchange(pDX);
}
void CImportUIBase::SetDoc ( int const Value )
{
m_pDoc = Value;
}
void CImportUIBase::EnableDialogItem ( int ID, BOOL Enable )
{
CWnd* Wnd = GetDlgItem ( ID );
if ( Wnd )
::EnableWindow ( Wnd->m_hWnd, Enable );
}
BOOL CImportUIBase::OnHelpInfo ( HELPINFO* pHelpInfo )
{
// call help system
::WinHelp ( m_hWnd, HELP_FILENAME, HELP_CONTEXT, GetWindowContextHelpId() );
return CResizableDialog::OnHelpInfo ( pHelpInfo );
}
BEGIN_MESSAGE_MAP(CImportUIBase, CResizableDialog)
ON_WM_DESTROY()
ON_WM_ERASEBKGND()
END_MESSAGE_MAP()
void CImportUIBase::OnDestroy()
{
RemoveAllAnchors();
CResizableDialog::OnDestroy();
}
BOOL CImportUIBase::OnEraseBkgnd(CDC* pDC)
{
// soll Flackern beim Resizen verhindern. Naja...
return CResizableDialog::OnEraseBkgnd(pDC);
}