[CLT2012]
[reactos.git] / base / applications / mscutils / devmgmt_new / DeviceView.cpp
1 #include "StdAfx.h"
2 #include "devmgmt.h"
3 #include "DeviceView.h"
4
5
6 CDeviceView::CDeviceView(HWND hMainWnd) :
7 m_hMainWnd(hMainWnd),
8 m_hTreeView(NULL),
9 m_hPropertyDialog(NULL),
10 m_hShortcutMenu(NULL)
11 {
12 }
13
14
15 CDeviceView::~CDeviceView(void)
16 {
17 }
18
19 BOOL
20 CDeviceView::Initialize()
21 {
22 /* Create the main treeview */
23 m_hTreeView = CreateWindowExW(WS_EX_CLIENTEDGE,
24 WC_TREEVIEW,
25 NULL,
26 WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_HASLINES |
27 TVS_HASBUTTONS | TVS_SHOWSELALWAYS | TVS_LINESATROOT,
28 0, 0, 0, 0,
29 m_hMainWnd,
30 (HMENU)IDC_TREEVIEW,
31 g_hInstance,
32 NULL);
33 if (m_hTreeView)
34 {
35
36 }
37
38 return !!(m_hTreeView);
39
40 return TRUE;
41 }
42
43 VOID
44 CDeviceView::Size(INT x,
45 INT y,
46 INT cx,
47 INT cy)
48 {
49 /* Resize the treeview */
50 SetWindowPos(m_hTreeView,
51 NULL,
52 x,
53 y,
54 cx,
55 cy,
56 SWP_NOZORDER);
57 }
58
59 BOOL
60 CDeviceView::Uninitialize()
61 {
62 return TRUE;
63 }
64
65 VOID
66 CDeviceView::Refresh()
67 {
68 }
69
70 VOID
71 CDeviceView::DisplayPropertySheet()
72 {
73 }
74
75 VOID
76 CDeviceView::SetFocus()
77 {
78 }