Commit 95c6d1d8 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

shell32: Add menu bar to Control Panel.

parent 08b1bdb8
/* Control Panel management /* Control Panel management
* *
* Copyright 2001 Eric Pouech * Copyright 2001 Eric Pouech
* Copyright 2008 Owen Rudge
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -166,10 +167,58 @@ CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel) ...@@ -166,10 +167,58 @@ CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel)
static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs) static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs)
{ {
CPanel* panel = (CPanel*)cs->lpCreateParams; CPanel* panel = (CPanel*)cs->lpCreateParams;
HMENU hMenu, hSubMenu;
CPlApplet* applet;
MENUITEMINFOW mii;
int menucount, i;
CPlItem *item;
SetWindowLongPtrW(hWnd, 0, (LONG_PTR)panel); SetWindowLongPtrW(hWnd, 0, (LONG_PTR)panel);
panel->status = 0; panel->status = 0;
panel->hWnd = hWnd; panel->hWnd = hWnd;
hMenu = LoadMenuW(shell32_hInstance, MAKEINTRESOURCEW(MENU_CPANEL));
/* insert menu items for applets */
hSubMenu = GetSubMenu(hMenu, 0);
menucount = 0;
for (applet = panel->first; applet; applet = applet->next) {
for (i = 0; i < applet->count; i++) {
if (!applet->info[i].dwSize)
continue;
/* set up a CPlItem for this particular subprogram */
item = HeapAlloc(GetProcessHeap(), 0, sizeof(CPlItem));
if (!item)
continue;
item->applet = (CPlApplet *) applet;
item->id = i;
mii.cbSize = sizeof(MENUITEMINFOW);
mii.fMask = MIIM_ID | MIIM_STRING | MIIM_DATA;
mii.dwTypeData = applet->info[i].szName;
mii.cch = sizeof(applet->info[i].szName) / sizeof(applet->info[i].szName[0]);
mii.wID = IDM_CPANEL_APPLET_BASE + menucount;
mii.dwItemData = (DWORD) item;
if (InsertMenuItemW(hSubMenu, menucount, TRUE, &mii)) {
DrawMenuBar(hWnd);
menucount++;
}
}
}
panel->total_subprogs = menucount;
/* check the "large items" icon in the View menu */
hSubMenu = GetSubMenu(hMenu, 1);
CheckMenuRadioItem(hSubMenu, FCIDM_SHVIEW_BIGICON, FCIDM_SHVIEW_REPORTVIEW,
FCIDM_SHVIEW_BIGICON, MF_BYCOMMAND);
SetMenu(hWnd, hMenu);
} }
#define XICON 32 #define XICON 32
...@@ -255,6 +304,36 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up) ...@@ -255,6 +304,36 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up)
return 0; return 0;
} }
static void Control_FreeCPlItems(HWND hWnd, CPanel *panel)
{
HMENU hMenu, hSubMenu;
MENUITEMINFOW mii;
int i;
/* get the File menu */
hMenu = GetMenu(hWnd);
if (!hMenu)
return;
hSubMenu = GetSubMenu(hMenu, 0);
if (!hSubMenu)
return;
/* loop and free the item data */
for (i = IDM_CPANEL_APPLET_BASE; i <= IDM_CPANEL_APPLET_BASE + panel->total_subprogs; i++)
{
mii.cbSize = sizeof(MENUITEMINFOW);
mii.fMask = MIIM_DATA;
if (!GetMenuItemInfoW(hSubMenu, i, FALSE, &mii))
continue;
HeapFree(GetProcessHeap(), 0, (LPVOID) mii.dwItemData);
}
}
static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg, static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
WPARAM lParam1, LPARAM lParam2) WPARAM lParam1, LPARAM lParam2)
{ {
...@@ -271,6 +350,7 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg, ...@@ -271,6 +350,7 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
while (applet) while (applet)
applet = Control_UnloadApplet(applet); applet = Control_UnloadApplet(applet);
} }
Control_FreeCPlItems(hWnd, panel);
PostQuitMessage(0); PostQuitMessage(0);
break; break;
case WM_PAINT: case WM_PAINT:
......
/* Control Panel management /* Control Panel management
* *
* Copyright 2001 Eric Pouech * Copyright 2001 Eric Pouech
* Copyright 2008 Owen Rudge
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -38,8 +39,14 @@ typedef struct CPanel { ...@@ -38,8 +39,14 @@ typedef struct CPanel {
unsigned status; unsigned status;
CPlApplet* clkApplet; CPlApplet* clkApplet;
unsigned clkSP; unsigned clkSP;
unsigned total_subprogs;
} CPanel; } CPanel;
/* structure to reference an individual control panel item */
typedef struct CPlItem {
CPlApplet *applet;
unsigned id;
} CPlItem;
CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel); CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel);
CPlApplet* Control_UnloadApplet(CPlApplet* applet); CPlApplet* Control_UnloadApplet(CPlApplet* applet);
......
...@@ -90,6 +90,28 @@ BEGIN ...@@ -90,6 +90,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "& ", FCIDM_SHVIEW_BIGICON
MENUITEM "& ", FCIDM_SHVIEW_SMALLICON
MENUITEM "&", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION " " CAPTION " "
......
...@@ -40,6 +40,29 @@ BEGIN ...@@ -40,6 +40,29 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Quant a %s" CAPTION "Quant a %s"
......
...@@ -41,6 +41,28 @@ BEGIN ...@@ -41,6 +41,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "关于 %s" CAPTION "关于 %s"
......
...@@ -94,6 +94,28 @@ BEGIN ...@@ -94,6 +94,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Vedle sebe", FCIDM_SHVIEW_BIGICON
MENUITEM "&Ikony", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Seznam", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Podrobnosti", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Prochzet..." CAPTION "Prochzet..."
......
...@@ -91,6 +91,28 @@ BEGIN ...@@ -91,6 +91,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Store Ikoner", FCIDM_SHVIEW_BIGICON
MENUITEM "S&m Ikoner", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Liste", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detaljer", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Vlg folder" CAPTION "Vlg folder"
......
...@@ -91,6 +91,28 @@ BEGIN ...@@ -91,6 +91,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Groe Symbole", FCIDM_SHVIEW_BIGICON
MENUITEM "&Kleine Symbole", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Liste", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Verzeichnis auswhlen" CAPTION "Verzeichnis auswhlen"
......
...@@ -90,6 +90,28 @@ BEGIN ...@@ -90,6 +90,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Browse for Folder" CAPTION "Browse for Folder"
......
...@@ -93,6 +93,28 @@ BEGIN ...@@ -93,6 +93,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Grandaj Ikonoj", FCIDM_SHVIEW_BIGICON
MENUITEM "Malgrandaj Ikonoj", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Listo", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detale", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Foliu Dosierujon" CAPTION "Foliu Dosierujon"
......
...@@ -91,6 +91,28 @@ BEGIN ...@@ -91,6 +91,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Iconos &grandes", FCIDM_SHVIEW_BIGICON
MENUITEM "Iconos &pequeos", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lista", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detalles", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Explorar carpeta" CAPTION "Explorar carpeta"
......
...@@ -90,6 +90,28 @@ BEGIN ...@@ -90,6 +90,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Suuret kuvakkeet", FCIDM_SHVIEW_BIGICON
MENUITEM "&Pienet kuvakkeet", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lista", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Tiedot", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Valitse kansio" CAPTION "Valitse kansio"
......
...@@ -96,6 +96,28 @@ BEGIN ...@@ -96,6 +96,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Grandes icônes", FCIDM_SHVIEW_BIGICON
MENUITEM "&Petites icônes", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Liste", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Détails", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Parcourir les dossiers" CAPTION "Parcourir les dossiers"
......
...@@ -40,6 +40,28 @@ BEGIN ...@@ -40,6 +40,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Nvjegy: %s" CAPTION "Nvjegy: %s"
......
...@@ -92,6 +92,28 @@ BEGIN ...@@ -92,6 +92,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Icone &Grandi", FCIDM_SHVIEW_BIGICON
MENUITEM "Icone &Piccole", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lista", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Dettagli", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Sfoglia Cartella" CAPTION "Sfoglia Cartella"
......
...@@ -84,6 +84,28 @@ BEGIN ...@@ -84,6 +84,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "大きなアイコン(&G)", FCIDM_SHVIEW_BIGICON
MENUITEM "小さなアイコン(&M)", FCIDM_SHVIEW_SMALLICON
MENUITEM "一覧(&L)", FCIDM_SHVIEW_LISTVIEW
MENUITEM "詳細(&D)", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
STRINGTABLE STRINGTABLE
{ {
/* columns in the shellview */ /* columns in the shellview */
......
...@@ -91,6 +91,29 @@ MENUITEM "속성(&P)", FCIDM_SHVIEW_PROPERTIES ...@@ -91,6 +91,29 @@ MENUITEM "속성(&P)", FCIDM_SHVIEW_PROPERTIES
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "큰 아이콘(&G)", FCIDM_SHVIEW_BIGICON
MENUITEM "작은 아이콘(&M)", FCIDM_SHVIEW_SMALLICON
MENUITEM "목록(&L)", FCIDM_SHVIEW_LISTVIEW
MENUITEM "자세히(&D)", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "폴더 탐색" CAPTION "폴더 탐색"
......
...@@ -92,6 +92,28 @@ BEGIN ...@@ -92,6 +92,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Grote Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "&Kleine Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lijst", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Bladeren naar Map" CAPTION "Bladeren naar Map"
......
...@@ -90,6 +90,28 @@ BEGIN ...@@ -90,6 +90,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Store ikoner", FCIDM_SHVIEW_BIGICON
MENUITEM "&Sm ikoner", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Liste", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detaljer", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Bla etter mappe" CAPTION "Bla etter mappe"
......
...@@ -91,6 +91,28 @@ BEGIN ...@@ -91,6 +91,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Due Ikony", FCIDM_SHVIEW_BIGICON
MENUITEM "&Mae Ikony", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lista", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Szczegy", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Wybierz folder" CAPTION "Wybierz folder"
......
...@@ -139,6 +139,53 @@ BEGIN ...@@ -139,6 +139,53 @@ BEGIN
END END
END END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "cones &grandes", FCIDM_SHVIEW_BIGICON
MENUITEM "cones &pequenos", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lista", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detalhes", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "cones &grandes", FCIDM_SHVIEW_BIGICON
MENUITEM "cones &pequenos", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Lista", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detalhes", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
......
...@@ -93,6 +93,28 @@ BEGIN ...@@ -93,6 +93,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Pictograme &mari", FCIDM_SHVIEW_BIGICON
MENUITEM "Pictograme m&ici", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Listă", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Detailii", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Selectare dosar" CAPTION "Selectare dosar"
......
...@@ -91,6 +91,28 @@ BEGIN ...@@ -91,6 +91,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "& ", FCIDM_SHVIEW_BIGICON
MENUITEM "& ", FCIDM_SHVIEW_SMALLICON
MENUITEM "&", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "" CAPTION ""
......
...@@ -92,6 +92,28 @@ BEGIN ...@@ -92,6 +92,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Ve&like ikone", FCIDM_SHVIEW_BIGICON
MENUITEM "&Male ikone", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Seznam", FCIDM_SHVIEW_LISTVIEW
MENUITEM "Po&drobnosti", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Brskanje po mapah" CAPTION "Brskanje po mapah"
......
...@@ -40,6 +40,28 @@ BEGIN ...@@ -40,6 +40,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "O programe %s" CAPTION "O programe %s"
......
...@@ -40,6 +40,28 @@ BEGIN ...@@ -40,6 +40,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Om %s" CAPTION "Om %s"
......
...@@ -90,6 +90,28 @@ BEGIN ...@@ -90,6 +90,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "B&yk Simgeler", FCIDM_SHVIEW_BIGICON
MENUITEM "K&k Simgeler", FCIDM_SHVIEW_SMALLICON
MENUITEM "&Liste", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Ayrntl", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION "Dizine Gzat" CAPTION "Dizine Gzat"
......
...@@ -90,6 +90,28 @@ BEGIN ...@@ -90,6 +90,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "& ", FCIDM_SHVIEW_BIGICON
MENUITEM "& ", FCIDM_SHVIEW_SMALLICON
MENUITEM "&", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK
CAPTION " " CAPTION " "
......
...@@ -45,6 +45,28 @@ BEGIN ...@@ -45,6 +45,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION " dfait di %s" CAPTION " dfait di %s"
......
...@@ -41,6 +41,28 @@ BEGIN ...@@ -41,6 +41,28 @@ BEGIN
END END
END END
MENU_CPANEL MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_CPANEL_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
MENUITEM "&List", FCIDM_SHVIEW_LISTVIEW
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
POPUP "&Help"
BEGIN
MENUITEM "&About Control Panel...", IDM_CPANEL_ABOUT
END
END
SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 220, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "關於 %s" CAPTION "關於 %s"
......
...@@ -109,6 +109,11 @@ ...@@ -109,6 +109,11 @@
#define MENU_SHV_FILE 144 #define MENU_SHV_FILE 144
#define MENU_CPANEL 200
#define IDM_CPANEL_EXIT 201
#define IDM_CPANEL_ABOUT 202
#define IDM_CPANEL_APPLET_BASE 210
/* Note: this string is referenced from the registry*/ /* Note: this string is referenced from the registry*/
#define IDS_RECYCLEBIN_FOLDER_NAME 8964 #define IDS_RECYCLEBIN_FOLDER_NAME 8964
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment