mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 21:18:30 +00:00
[DEVMGR]
DeviceAdvancedProperties: Show the details page of a device property sheet in extended mode only. svn path=/trunk/; revision=56103
This commit is contained in:
parent
a90cb98c5d
commit
4f30b36b52
1 changed files with 8 additions and 4 deletions
|
@ -66,6 +66,7 @@ typedef struct _DEVADVPROP_INFO
|
||||||
UINT Flags;
|
UINT Flags;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
UINT Extended : 1;
|
||||||
UINT FreeDevPropSheets : 1;
|
UINT FreeDevPropSheets : 1;
|
||||||
UINT CanDisable : 1;
|
UINT CanDisable : 1;
|
||||||
UINT DeviceStarted : 1;
|
UINT DeviceStarted : 1;
|
||||||
|
@ -2019,6 +2020,7 @@ GetParentNode:
|
||||||
dap->nDevPropSheets++;
|
dap->nDevPropSheets++;
|
||||||
|
|
||||||
/* include the details page */
|
/* include the details page */
|
||||||
|
if (dap->Extended)
|
||||||
dap->nDevPropSheets++;
|
dap->nDevPropSheets++;
|
||||||
|
|
||||||
/* add the device property sheets */
|
/* add the device property sheets */
|
||||||
|
@ -2093,8 +2095,9 @@ GetParentNode:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1)
|
if (dap->Extended)
|
||||||
{
|
{
|
||||||
|
/* Add the details page */
|
||||||
PROPSHEETPAGE pspDetails = {0};
|
PROPSHEETPAGE pspDetails = {0};
|
||||||
pspDetails.dwSize = sizeof(PROPSHEETPAGE);
|
pspDetails.dwSize = sizeof(PROPSHEETPAGE);
|
||||||
pspDetails.dwFlags = PSP_DEFAULT;
|
pspDetails.dwFlags = PSP_DEFAULT;
|
||||||
|
@ -2117,9 +2120,9 @@ GetParentNode:
|
||||||
dap->DevPropSheets[iPage] = NULL;
|
dap->DevPropSheets[iPage] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* FIXME: Add the resources page */
|
/* FIXME: Add the resources page */
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME: Add the power page */
|
/* FIXME: Add the power page */
|
||||||
}
|
}
|
||||||
|
@ -2445,6 +2448,7 @@ DisplayDeviceAdvancedProperties(IN HWND hWndParent,
|
||||||
|
|
||||||
DevAdvPropInfo->IsAdmin = IsUserAdmin();
|
DevAdvPropInfo->IsAdmin = IsUserAdmin();
|
||||||
DevAdvPropInfo->DoDefaultDevAction = ((dwFlags & DPF_DEVICE_STATUS_ACTION) != 0);
|
DevAdvPropInfo->DoDefaultDevAction = ((dwFlags & DPF_DEVICE_STATUS_ACTION) != 0);
|
||||||
|
DevAdvPropInfo->Extended = ((dwFlags & DPF_EXTENDED) != 0);
|
||||||
|
|
||||||
psh.dwSize = sizeof(PROPSHEETHEADER);
|
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||||
psh.dwFlags = PSH_PROPTITLE | PSH_NOAPPLYNOW;
|
psh.dwFlags = PSH_PROPTITLE | PSH_NOAPPLYNOW;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue