Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > DoxygenDeviceView.cpp
Go to the documentation of this file.
00001 #include "StdAfx.h" 00002 #include "devmgmt.h" 00003 #include "DeviceView.h" 00004 00005 00006 CDeviceView::CDeviceView(HWND hMainWnd) : 00007 m_hMainWnd(hMainWnd), 00008 m_hTreeView(NULL), 00009 m_hPropertyDialog(NULL), 00010 m_hShortcutMenu(NULL) 00011 { 00012 } 00013 00014 00015 CDeviceView::~CDeviceView(void) 00016 { 00017 } 00018 00019 BOOL 00020 CDeviceView::Initialize() 00021 { 00022 /* Create the main treeview */ 00023 m_hTreeView = CreateWindowExW(WS_EX_CLIENTEDGE, 00024 WC_TREEVIEW, 00025 NULL, 00026 WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_HASLINES | 00027 TVS_HASBUTTONS | TVS_SHOWSELALWAYS | TVS_LINESATROOT, 00028 0, 0, 0, 0, 00029 m_hMainWnd, 00030 (HMENU)IDC_TREEVIEW, 00031 g_hInstance, 00032 NULL); 00033 if (m_hTreeView) 00034 { 00035 00036 } 00037 00038 return !!(m_hTreeView); 00039 00040 return TRUE; 00041 } 00042 00043 VOID 00044 CDeviceView::Size(INT x, 00045 INT y, 00046 INT cx, 00047 INT cy) 00048 { 00049 /* Resize the treeview */ 00050 SetWindowPos(m_hTreeView, 00051 NULL, 00052 x, 00053 y, 00054 cx, 00055 cy, 00056 SWP_NOZORDER); 00057 } 00058 00059 BOOL 00060 CDeviceView::Uninitialize() 00061 { 00062 return TRUE; 00063 } 00064 00065 VOID 00066 CDeviceView::Refresh() 00067 { 00068 } 00069 00070 VOID 00071 CDeviceView::DisplayPropertySheet() 00072 { 00073 } 00074 00075 VOID 00076 CDeviceView::SetFocus() 00077 { 00078 } Generated on Sat May 26 2012 04:15:52 for ReactOS by
1.7.6.1
|