[EXPLORER][SHELL32] Expand/unexpand My Documents menu (#6594)

Follow-up to #6592. Improve Start Menu
customization.
JIRA issue: CORE-16956
- Add IDS_ADVANCED_EXPAND_MY_DOCUMENTS
  and IDS_ADVANCED_EXPAND_MY_PICTURES
  resource strings.
- Check L"CascadeMyDocuments" and
  L"CascadeMyPictures" registry values.
- Add GetAdvancedValue helper function.
- Implement CreateRecentMenu function.
This commit is contained in:
Katayama Hirofumi MZ 2024-03-11 13:18:58 +09:00 committed by GitHub
parent 4e10ebed40
commit 71285dff48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 94 additions and 9 deletions

View file

@ -109,6 +109,8 @@
/* These values must be synchronized with shell32 */
#define IDS_ADVANCED_DISPLAY_FAVORITES 30466
#define IDS_ADVANCED_DISPLAY_LOG_OFF 30467
#define IDS_ADVANCED_EXPAND_MY_DOCUMENTS 30469
#define IDS_ADVANCED_EXPAND_MY_PICTURES 30472
#define IDS_ADVANCED_DISPLAY_RUN 30474
#define IDS_ADVANCED_DISPLAY_ADMINTOOLS 30476

View file

@ -86,12 +86,12 @@ struct CUSTOMIZE_ENTRY
FN_CUSTOMIZE_WRITE fnWrite;
};
static DWORD CALLBACK CustomizeRead0(const CUSTOMIZE_ENTRY *entry)
static DWORD CALLBACK CustomizeReadAdvanced(const CUSTOMIZE_ENTRY *entry)
{
return GetAdvancedBool(entry->name, FALSE);
}
static BOOL CALLBACK CustomizeWrite0(const CUSTOMIZE_ENTRY *entry, DWORD dwValue)
static BOOL CALLBACK CustomizeWriteAdvanced(const CUSTOMIZE_ENTRY *entry, DWORD dwValue)
{
return SetAdvancedDword(entry->name, dwValue);
}
@ -112,9 +112,11 @@ static const CUSTOMIZE_ENTRY s_CustomizeEntries[] =
// FIXME: Make "StartMenuAdminTools" effective
//{ IDS_ADVANCED_DISPLAY_ADMINTOOLS, L"StartMenuAdminTools", CustomizeRead1, CustomizeWrite1 }, // FIXME
{ IDS_ADVANCED_DISPLAY_FAVORITES, L"StartMenuFavorites", CustomizeRead0, CustomizeWrite0 },
{ IDS_ADVANCED_DISPLAY_LOG_OFF, L"StartMenuLogoff", CustomizeRead0, CustomizeWrite0 },
{ IDS_ADVANCED_DISPLAY_RUN, L"NoRun", CustomizeReadRun, CustomizeWriteRest },
{ IDS_ADVANCED_DISPLAY_FAVORITES, L"StartMenuFavorites", CustomizeReadAdvanced, CustomizeWriteAdvanced },
{ IDS_ADVANCED_DISPLAY_LOG_OFF, L"StartMenuLogoff", CustomizeReadAdvanced, CustomizeWriteAdvanced },
{ IDS_ADVANCED_DISPLAY_RUN, L"NoRun", CustomizeReadRun, CustomizeWriteRest },
{ IDS_ADVANCED_EXPAND_MY_DOCUMENTS, L"CascadeMyDocuments", CustomizeReadAdvanced, CustomizeWriteAdvanced },
{ IDS_ADVANCED_EXPAND_MY_PICTURES, L"CascadeMyPictures", CustomizeReadAdvanced, CustomizeWriteAdvanced },
};
static VOID AddCustomizeItem(HWND hTreeView, const CUSTOMIZE_ENTRY *entry)

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1022,6 +1022,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1021,6 +1021,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1015,6 +1015,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Popupinformationen für Ordner- und Desktop-Elemente anzeigen"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1023,6 +1023,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Mostrar descripción de íconos y carpetas en el escritorio"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1021,6 +1021,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Näita kausta- ja töölauaüksuste hüpikkirjeldusi"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1019,6 +1019,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Erakutsi ikonoen eta karpeten deskribapena mahaigainean"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Afficher les info-bulles pour les fichiers et les dossiers"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1021,6 +1021,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1016,6 +1016,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "फ़ोल्डर और डेस्कटॉप आइटम के लिए पॉप-अप विवरण दिखाएं"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1013,6 +1013,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Felugró leírások megjelenítése a mappákhoz és az asztalon lévő elemekhez"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1011,6 +1011,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Tampilkan deskrisi popup untuk butir folder dan desktop"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1011,6 +1011,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "フォルダとデスクトップの項目にポップアップ式の説明を表示する"
IDS_ADVANCED_DISPLAY_FAVORITES "「お気に入り」を表示"
IDS_ADVANCED_DISPLAY_LOG_OFF "「ログオフ」を表示"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "「マイ ドキュメント」を展開"
IDS_ADVANCED_EXPAND_MY_PICTURES "「マイ ピクチャ」を展開"
IDS_ADVANCED_DISPLAY_RUN "「ファイル名を指定して実行」を表示"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "「管理者ツール」を表示"

View file

@ -1021,6 +1021,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1023,6 +1023,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Pokaż podręczny opis elementów folderów i pulpitu"
IDS_ADVANCED_DISPLAY_FAVORITES "Wyświetl polecenie Ulubione"
IDS_ADVANCED_DISPLAY_LOG_OFF "Wyświetl polecenie Wyloguj"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Wyświetl polecenie Uruchom"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Wyświetl polecenie Narzędzia administracyjne"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1013,6 +1013,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Mostrar descrição pop-up para itens de pastas e área de trabalho"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1022,6 +1022,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Permite descriere prin indicii pentru foldere și elemente de desktop"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1023,6 +1023,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Отображать описание для папок и элементов рабочего стола"
IDS_ADVANCED_DISPLAY_FAVORITES "Отображать папку ""Избранное"""
IDS_ADVANCED_DISPLAY_LOG_OFF "Отображать команду ""Завершение сеанса"""
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Отображать команду ""Выполнить"""
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Отображать меню ""Администрирование"""

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1021,6 +1021,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Show pop-up description for folder and desktop items"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1023,6 +1023,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Dizin ve masaüstü ögeleri için açılan tanım göster"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1014,6 +1014,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "Показувати спливаючий опис для елементів папки та робочого столу"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1024,6 +1024,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "显示文件夹和桌面项目的弹出描述"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1022,6 +1022,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "顯示資料夾和桌面項目的快顯描述"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -1023,6 +1023,8 @@ BEGIN
IDS_ADVANCED_SHOW_INFO_TIP "顯示資料夾和桌面項目的快顯描述"
IDS_ADVANCED_DISPLAY_FAVORITES "Display Favorites"
IDS_ADVANCED_DISPLAY_LOG_OFF "Display Log Off"
IDS_ADVANCED_EXPAND_MY_DOCUMENTS "Expand My Documents"
IDS_ADVANCED_EXPAND_MY_PICTURES "Expand My Pictures"
IDS_ADVANCED_DISPLAY_RUN "Display Run"
IDS_ADVANCED_DISPLAY_ADMINTOOLS "Display Administrative Tools"

View file

@ -179,8 +179,17 @@ private:
}
}
HMENU CreateRecentMenu(BOOL bExpandMyDocuments, BOOL bExpandMyPictures) const
BOOL GetAdvancedValue(LPCWSTR pszName, BOOL bDefault) const
{
return SHRegGetBoolUSValueW(
L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
pszName, FALSE, bDefault);
}
HMENU CreateRecentMenu() const
{
BOOL bExpandMyDocuments = GetAdvancedValue(L"CascadeMyDocuments", FALSE);
BOOL bExpandMyPictures = GetAdvancedValue(L"CascadeMyPictures", FALSE);
HMENU hMenu = ::CreateMenu();
InsertRecentItem(hMenu, IDM_MYDOCUMENTS, CSIDL_MYDOCUMENTS, bExpandMyDocuments);
InsertRecentItem(hMenu, IDM_MYPICTURES, CSIDL_MYPICTURES, bExpandMyPictures);
@ -224,9 +233,7 @@ private:
{
if (csidl == CSIDL_RECENT)
{
BOOL bExpandMyDocuments = FALSE; /* FIXME: Get value from registry */
BOOL bExpandMyPictures = FALSE; /* FIXME: Get value from registry */
HMENU hMenu = CreateRecentMenu(bExpandMyDocuments, bExpandMyPictures);
HMENU hMenu = CreateRecentMenu();
if (hMenu == NULL)
ERR("CreateRecentMenu failed\n");

View file

@ -309,6 +309,8 @@
/* These values must be synchronized with explorer */
#define IDS_ADVANCED_DISPLAY_FAVORITES 30466
#define IDS_ADVANCED_DISPLAY_LOG_OFF 30467
#define IDS_ADVANCED_EXPAND_MY_DOCUMENTS 30469
#define IDS_ADVANCED_EXPAND_MY_PICTURES 30472
#define IDS_ADVANCED_DISPLAY_RUN 30474
#define IDS_ADVANCED_DISPLAY_ADMINTOOLS 30476