Implement ID_VIEW_SPLIT command.

This commit is contained in:
Martin Fuchs 2005-05-23 09:52:51 +00:00 committed by Alexandre Julliard
parent 27792f6f16
commit 371c620d2d
16 changed files with 26 additions and 17 deletions

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "J&en strom" , 411
MENUITEM "Jen a&dresáø&" , 412
MENUITEM SEPARATOR
MENUITEM "S&louèit" , 414
MENUITEM "S&louèit" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Název" , ID_VIEW_NAME
MENUITEM "&V¹echny detaily" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Nur St&ruktur" , 411
MENUITEM "Nur &Verzeichnis" , 412
MENUITEM SEPARATOR
MENUITEM "&Teilen" , 414
MENUITEM "&Teilen" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Name" , ID_VIEW_NAME
MENUITEM "A&lle Dateiangaben" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -86,7 +86,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Tr&ee Only" , 411
MENUITEM "Directory &Only" , 412
MENUITEM SEPARATOR
MENUITEM "Sp&lit" , 414
MENUITEM "Sp&lit" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Name" , ID_VIEW_NAME
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Árbol &sólo" , 411
MENUITEM "&Directorio sólo" , 412
MENUITEM SEPARATOR
MENUITEM "Di&vidir" , 414
MENUITEM "Di&vidir" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "No&mbre" , ID_VIEW_NAME
MENUITEM "T&odos los detalles" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Arbre seulement" , 411
MENUITEM "&Répertoire seulement" , 412
MENUITEM SEPARATOR
MENUITEM "&Séparer" , 414
MENUITEM "&Séparer" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nom" , ID_VIEW_NAME
MENUITEM "Tous &les Détails" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Könyvtárfa" , 411
MENUITEM "&Csak mappák" , 412
MENUITEM SEPARATOR
MENUITEM "&Felosztás" , 414
MENUITEM "&Felosztás" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Név" , ID_VIEW_NAME
MENUITEM "&Minden részlet" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "So&lo Albero" , 411
MENUITEM "&Solo Directory" , 412
MENUITEM SEPARATOR
MENUITEM "Di&vidi" , 414
MENUITEM "Di&vidi" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nome" , ID_VIEW_NAME
MENUITEM "&Mostra tutti i dettagli sui file" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -83,7 +83,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Alleen hierarchie" , 411
MENUITEM "Alleen &mapinhoud" , 412
MENUITEM SEPARATOR
MENUITEM "Sp&litsen" , 414
MENUITEM "Sp&litsen" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Naam" , ID_VIEW_NAME
MENUITEM "&Alle details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "D&rzewo" , 411
MENUITEM "&Katalogi" , 412
MENUITEM SEPARATOR
MENUITEM "&Po³¹cz" , 414
MENUITEM "&Po³¹cz" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nazwa" , ID_VIEW_NAME
MENUITEM "&Wszystkie atrybuty pliku" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -86,7 +86,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "S&omente árvore" , 411
MENUITEM "So&mente pasta" , 412
MENUITEM SEPARATOR
MENUITEM "&Dividir" , 414
MENUITEM "&Dividir" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nome" , ID_VIEW_NAME
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
@ -213,7 +213,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "S&omente árvore" , 411
MENUITEM "So&mente pasta" , 412
MENUITEM SEPARATOR
MENUITEM "&Dividir" , 414
MENUITEM "&Dividir" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nome" , ID_VIEW_NAME
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -83,7 +83,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Òîëüêî &äåðåâî" , 411
MENUITEM "Òîëüêî &ïàïêà" , 412
MENUITEM SEPARATOR
MENUITEM "Ðàç&áèòü" , 414
MENUITEM "Ðàç&áèòü" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "È&ìÿ" , ID_VIEW_NAME
MENUITEM "Â&ñå ïîäðîáíîñòè î ôàéëå" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Tr&ee Only" , 411
MENUITEM "Directory &Only" , 412
MENUITEM SEPARATOR
MENUITEM "Sp&lit" , 414
MENUITEM "Sp&lit" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Name" , ID_VIEW_NAME
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Bara tr&äd", 411
MENUITEM "Bara &mapp", 412
MENUITEM SEPARATOR
MENUITEM "De&la", 414
MENUITEM "De&la", ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Namn", ID_VIEW_NAME
MENUITEM "&Alla Fildetaljer" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "仅显示目录树(&E" , 411
MENUITEM "仅显示目录内容(&O" , 412
MENUITEM SEPARATOR
MENUITEM "分割(&L" , 414
MENUITEM "分割(&L" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "文件名名(&N" , ID_VIEW_NAME
MENUITEM "文件详悉列表(&A" , ID_VIEW_ALL_ATTRIBUTES, CHECKED

View File

@ -51,6 +51,7 @@
#define ID_VIEW_SORT_TYPE 405
#define ID_VIEW_SORT_SIZE 406
#define ID_VIEW_SORT_DATE 407
#define ID_VIEW_SPLIT 414
#define ID_SELECT_FONT 510
#define ID_VIEW_TOOL_BAR 508
#define ID_VIEW_DRIVE_BAR 507

View File

@ -181,6 +181,8 @@ LRESULT CALLBACK TreeWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
/* globals */
WINEFILE_GLOBALS Globals;
static int last_split;
/* some common string constants */
const static TCHAR sEmpty[] = {'\0'};
const static TCHAR sSpace[] = {' ', '\0'};
@ -3679,8 +3681,6 @@ static HRESULT ShellFolderContextMenu(IShellFolder* shell_folder, HWND hwndParen
LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
{
static int last_split;
ChildWnd* child = (ChildWnd*) GetWindowLong(hwnd, GWL_USERDATA);
ASSERT(child);
@ -3919,6 +3919,14 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
set_sort_order(child, SORT_DATE);
break;
case ID_VIEW_SPLIT: {
last_split = child->split_pos;
#ifdef _NO_EXTENSIONS
draw_splitbar(hwnd, last_split);
#endif
SetCapture(hwnd);
break;}
default:
return pane_command(pane, LOWORD(wparam));
}