-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathRotationCenterDialog.cpp
53 lines (46 loc) · 1.03 KB
/
RotationCenterDialog.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
#include "RotationCenterDialog.h"
#include "ModelWindow.h"
#include "Resource.h"
#include <LDLib/LDUserDefaultsKeys.h>
#include <TCFoundation/TCUserDefaults.h>
#if defined(_MSC_VER) && _MSC_VER >= 1400 && defined(_DEBUG)
#define new DEBUG_CLIENTBLOCK
#endif // _DEBUG
RotationCenterDialog::RotationCenterDialog(HINSTANCE hInstance):
LocationDialog(hInstance, IDD_ROTATION_CENTER)
{
}
RotationCenterDialog::~RotationCenterDialog(void)
{
}
void RotationCenterDialog::dealloc(void)
{
LocationDialog::dealloc();
}
BOOL RotationCenterDialog::doInitDialog(HWND hKbControl)
{
LocationDialog::doInitDialog(hKbControl);
updateEnabled();
setAutosaveName("RotationCenterDialog");
return TRUE;
}
LRESULT RotationCenterDialog::doCommand(
int notifyCode,
int commandId,
HWND control)
{
if (notifyCode == BN_CLICKED)
{
switch (commandId)
{
case IDC_RESET:
return doReset();
}
}
return CUIDialog::doCommand(notifyCode, commandId, control);
}
LRESULT RotationCenterDialog::doReset(void)
{
EndDialog(hWindow, (INT_PTR)IDC_RESET);
return 0;
}