-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelWindow.h
More file actions
42 lines (29 loc) · 850 Bytes
/
ModelWindow.h
File metadata and controls
42 lines (29 loc) · 850 Bytes
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
#pragma once
#include"BasicWindow.h"
#include"DetailWindow.h"
struct ModelSource {
string name;
HWND hwnd;
};
class ModelWindow : public BasicWindow {
public:
ModelWindow(HINSTANCE hi, LPCSTR windowName, ModelManager* mm, Camera* c, unsigned int x, unsigned int y, unsigned int width, unsigned int height)
: BasicWindow(hi, windowName, mm, c, x, y, width, height) {
}
void Init(DetailWindow* dw) {
_detailWindow = dw;
}
~ModelWindow();
void CreateModelTree();
void DeleteTreeItem();
void DeleteModel();
void DuplicateModel();
HTREEITEM InsertTreeItem(HTREEITEM hitemParent, LPTSTR lpszName, int pId, int cId);
LRESULT WindowProcedure(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) override;
public:
vector<ModelSource> _source;
HWND _hwndTreeView;
int _selectedModel = 0;
private:
DetailWindow* _detailWindow;
};