Author: ekohl
Date: Sat Mar 10 15:26:02 2012
New Revision: 56103
URL:
http://svn.reactos.org/svn/reactos?rev=56103&view=rev
Log:
[DEVMGR]
DeviceAdvancedProperties: Show the details page of a device property sheet in extended
mode only.
Modified:
trunk/reactos/dll/win32/devmgr/advprop.c
Modified: trunk/reactos/dll/win32/devmgr/advprop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/advprop.c…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] Sat Mar 10 15:26:02 2012
@@ -66,6 +66,7 @@
UINT Flags;
struct
{
+ UINT Extended : 1;
UINT FreeDevPropSheets : 1;
UINT CanDisable : 1;
UINT DeviceStarted : 1;
@@ -2019,7 +2020,8 @@
dap->nDevPropSheets++;
/* include the details page */
- dap->nDevPropSheets++;
+ if (dap->Extended)
+ dap->nDevPropSheets++;
/* add the device property sheets */
if (dap->nDevPropSheets != 0)
@@ -2093,8 +2095,9 @@
}
}
- if (1)
- {
+ if (dap->Extended)
+ {
+ /* Add the details page */
PROPSHEETPAGE pspDetails = {0};
pspDetails.dwSize = sizeof(PROPSHEETPAGE);
pspDetails.dwFlags = PSP_DEFAULT;
@@ -2117,9 +2120,9 @@
dap->DevPropSheets[iPage] = NULL;
}
}
- }
-
- /* FIXME: Add the resources page */
+
+ /* FIXME: Add the resources page */
+ }
/* FIXME: Add the power page */
}
@@ -2445,6 +2448,7 @@
DevAdvPropInfo->IsAdmin = IsUserAdmin();
DevAdvPropInfo->DoDefaultDevAction = ((dwFlags & DPF_DEVICE_STATUS_ACTION) !=
0);
+ DevAdvPropInfo->Extended = ((dwFlags & DPF_EXTENDED) != 0);
psh.dwSize = sizeof(PROPSHEETHEADER);
psh.dwFlags = PSH_PROPTITLE | PSH_NOAPPLYNOW;