Files
Open-Shell-Menu/Src/StartMenu/StartMenuDLL/CustomMenu.h
thisismy-github bb26cec0ec Added option to single-expand any Win7 style item
Expands the "display as a list of drives" option from This PC to work on
almost any item in the Windows 7 style. Incompatible items have a new
setting called ITEM_NODRIVES which blocks the option from appearing.
This PC still uses the original "list of drives" text, while other items
use "list of links" instead. Sorting has been updated to account for
this option by adding a property called bFolderLink which marks any
folder, even if it is not explicitly expandable.
2022-08-13 16:00:26 -04:00

37 lines
1.0 KiB
C

// Classic Shell (c) 2009-2017, Ivo Beltchev
// Open-Shell (c) 2017-2018, The Open-Shell Team
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
#pragma once
struct StdMenuItem;
const StdMenuItem *ParseCustomMenu( unsigned int &rootSettings );
struct CStdCommand7
{
enum
{
ITEM_SINGLE=1, // this item never has sub-menu
ITEM_FOLDER=2, // this item always has sub-menu
ITEM_COMPUTER=4, // this item can be expanded only one level
ITEM_NODRIVES=8, // this item can never be expanded only one level
};
const wchar_t *command;
int nameID;
const wchar_t *label;
const wchar_t *tip;
const wchar_t *icon;
const KNOWNFOLDERID *knownFolder;
const wchar_t *knownLink;
unsigned int settings;
unsigned int flags;
CString displayName; // for the settings UI
bool operator<( const CStdCommand7 &command ) { return displayName<command.displayName; }
};
extern CStdCommand7 g_StdCommands7[];
extern const int g_StdCommands7Count;
void InitStdCommands7( void );