-
Notifications
You must be signed in to change notification settings - Fork 2
/
ButtonsDB.cpp
72 lines (61 loc) · 2.34 KB
/
ButtonsDB.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
//-----------------------------------------------------------------------------
// File: BrushTabDB.cpp
//
// Desc:
//
// Copyright (c) 2002 Dan
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Includes
#include <windows.h>
#include <commctrl.h>
#include "PolygonManager.h"
#include "CustomMsg.h"
#include "main.h"
#include "resource.h"
#include "MessageProcs.h"
#include "ButtonsDB.h"
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Name: OnButtonsDB_WMInitDialog()
// Desc:
//-----------------------------------------------------------------------------
void OnButtonsDB_WMInitDialog( HWND hWnd )
{
ShowWindow( hWnd, true );
UpdateWindow( hWnd );
}
//-----------------------------------------------------------------------------
// Name: OnButtonsDB_WMCommand()
// Desc:
//-----------------------------------------------------------------------------
void OnButtonsDB_WMCommand( HWND hWnd, WPARAM wParam )
{
switch( LOWORD( wParam ) )
{
case IDC_BUTTONSDB_NEXTTRIANGLE: PM->NextFace(); break;
case IDC_BUTTONSDB_NEXTFACE: break;
case IDC_BUTTONSDB_NEXTVERTEX: PM->SelectNextVertex(); break;
case IDC_BUTTONSDB_NEXTSEGMENT: break;
case IDC_BUTTONSDB_SUBTRACTBRUSH: PM->ForgeBrush(); break;
case IDC_BUTTONSDB_ADDBRUSH: break;
case IDC_BUTTONSDB_EXPANDFACE: if( !PM->ExpandFace() ) LOG_ERR() break;
case IDC_BUTTONSDB_REBUILD_GEOMETRY: if( !PM->RebuildGeometry() ) LOG_ERR(); break;
default: Log( "GOT A MESSAGE\n" ); break;
}
}
//-----------------------------------------------------------------------------
// Name: OnButtonsDB_WMNotify()
// Desc:
//-----------------------------------------------------------------------------
void OnButtonsDB_WMNotify( HWND hWnd, LPARAM lParam )
{
}
//-----------------------------------------------------------------------------
// Name: OnButtonsDB_WMDestroy()
// Desc:
//-----------------------------------------------------------------------------
void OnButtonsDB_WMDestroy( HWND hWnd )
{
EndDialog( hWnd, 0 );
}