reactos/base/applications/mscutils/devmgmt_new/DeviceView.cpp
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

78 lines
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()
{
}