mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00

* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
78 lines
No EOL
1.4 KiB
C++
78 lines
No EOL
1.4 KiB
C++
#include "StdAfx.h"
|
|
#include "devmgmt.h"
|
|
#include "DeviceView.h"
|
|
|
|
|
|
CDeviceView::CDeviceView(HWND hMainWnd) :
|
|
m_hMainWnd(hMainWnd),
|
|
m_hTreeView(NULL),
|
|
m_hPropertyDialog(NULL),
|
|
m_hShortcutMenu(NULL)
|
|
{
|
|
}
|
|
|
|
|
|
CDeviceView::~CDeviceView(void)
|
|
{
|
|
}
|
|
|
|
BOOL
|
|
CDeviceView::Initialize()
|
|
{
|
|
/* Create the main treeview */
|
|
m_hTreeView = CreateWindowExW(WS_EX_CLIENTEDGE,
|
|
WC_TREEVIEW,
|
|
NULL,
|
|
WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_HASLINES |
|
|
TVS_HASBUTTONS | TVS_SHOWSELALWAYS | TVS_LINESATROOT,
|
|
0, 0, 0, 0,
|
|
m_hMainWnd,
|
|
(HMENU)IDC_TREEVIEW,
|
|
g_hInstance,
|
|
NULL);
|
|
if (m_hTreeView)
|
|
{
|
|
|
|
}
|
|
|
|
return !!(m_hTreeView);
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
VOID
|
|
CDeviceView::Size(INT x,
|
|
INT y,
|
|
INT cx,
|
|
INT cy)
|
|
{
|
|
/* Resize the treeview */
|
|
SetWindowPos(m_hTreeView,
|
|
NULL,
|
|
x,
|
|
y,
|
|
cx,
|
|
cy,
|
|
SWP_NOZORDER);
|
|
}
|
|
|
|
BOOL
|
|
CDeviceView::Uninitialize()
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
VOID
|
|
CDeviceView::Refresh()
|
|
{
|
|
}
|
|
|
|
VOID
|
|
CDeviceView::DisplayPropertySheet()
|
|
{
|
|
}
|
|
|
|
VOID
|
|
CDeviceView::SetFocus()
|
|
{
|
|
} |