Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 17th, 2012  |  syntax: None  |  size: 31.87 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: base/shell/explorer-new/command_line.c
  2. ===================================================================
  3. --- base/shell/explorer-new/command_line.c      (revision 0)
  4. +++ base/shell/explorer-new/command_line.c      (revision 0)
  5. @@ -0,0 +1,236 @@
  6. +#include <precomp.h>
  7. +
  8. +HRESULT WINAPI SHOpenFolderAndSelectItems(
  9. +  IN           PCIDLIST_ABSOLUTE pidlFolder,
  10. +               UINT cidl,
  11. +  IN OPTIONAL  PCUITEMID_CHILD_ARRAY *apidl,
  12. +               DWORD dwFlags
  13. +);
  14. +
  15. +/* return values */
  16. +#define NOT_ENOUGH_MEMORY     1
  17. +#define IO_ERROR              2
  18. +
  19. +/* common check of memory allocation results */
  20. +#define CHECK_ENOUGH_MEMORY(p) \
  21. +if (!(p)) \
  22. +{ \
  23. +    exit(NOT_ENOUGH_MEMORY); \
  24. +}  
  25. +
  26. +TCHAR szProfilePath[MAX_PATH];
  27. +
  28. +typedef enum
  29. +{
  30. +    ACTION_SELECT, ACTION_ROOT, ACTION_EXPLVIEW, ACTION_NEWWINDOW, ACTION_DEFAULT
  31. +} EXPLORER_ACTION;
  32. +
  33. +/******************************************************************************
  34. + * Copies file name from command line string to the buffer.
  35. + * Rewinds the command line string pointer to the next non-space character
  36. + * after the file name.
  37. + * Buffer contains an empty string if no filename was found;
  38. + *
  39. + * params:
  40. + * command_line - command line current position pointer
  41. + *      where *s[0] is the first symbol of the file name.
  42. + * file_name - buffer to write the file name to.
  43. + */
  44. +void get_file_name(LPWSTR *command_line, LPWSTR file_name)
  45. +{
  46. +    WCHAR *s = *command_line;
  47. +    int pos = 0;                /* position of pointer "s" in *command_line */
  48. +    file_name[0] = 0;
  49. +
  50. +    if (!s[0])
  51. +    {
  52. +        return;
  53. +    }
  54. +
  55. +    if (s[0] == L'"')
  56. +    {
  57. +        s++;
  58. +        (*command_line)++;
  59. +        while(s[0] != L'"')
  60. +        {
  61. +            if (!s[0])
  62. +            {
  63. +                //action = ACTION_DEFAULT;  //Unexpected end of file name
  64. +            }
  65. +            s++;
  66. +            pos++;
  67. +        }
  68. +    }
  69. +    else
  70. +    {
  71. +        while(s[0] && !iswspace(s[0]))
  72. +        {
  73. +            s++;
  74. +            pos++;
  75. +        }
  76. +    }
  77. +    memcpy(file_name, *command_line, pos * sizeof((*command_line)[0]));
  78. +    /* remove the last backslash */
  79. +    if (file_name[pos - 1] == L'\\')
  80. +    {
  81. +        file_name[pos - 1] = L'\0';
  82. +    }
  83. +    else
  84. +    {
  85. +        file_name[pos] = L'\0';
  86. +    }
  87. +
  88. +    if (s[0])
  89. +    {
  90. +        s++;
  91. +        pos++;
  92. +    }
  93. +    while(s[0] && iswspace(s[0]))
  94. +    {
  95. +        s++;
  96. +        pos++;
  97. +    }
  98. +    (*command_line) += pos;
  99. +}
  100. +
  101. +
  102. +BOOL PerformExplAction(EXPLORER_ACTION action, LPWSTR s)
  103. +{
  104. +    wchar_t fpath[MAX_PATH];
  105. +    get_file_name(&s, fpath);
  106. +        
  107. +    switch (action)
  108. +    {
  109. +    case ACTION_SELECT:
  110. +    {
  111. +        if (!fpath[0])
  112. +        {
  113. +            action = ACTION_DEFAULT;  //No file name is specified
  114. +        }
  115. +        else
  116. +        {
  117. +            PIDLIST_ABSOLUTE pidlFolder;
  118. +            
  119. +            pidlFolder = ILCreateFromPath(fpath);
  120. +            if (pidlFolder)
  121. +            {
  122. +                SHOpenFolderAndSelectItems(pidlFolder, 0, NULL, 0);
  123. +                ILFree(pidlFolder);
  124. +            }
  125. +        }
  126. +        break;
  127. +    }
  128. +    case ACTION_EXPLVIEW:
  129. +        //FIXME /e
  130. +    break;
  131. +    
  132. +    case ACTION_NEWWINDOW:
  133. +    {
  134. +        //FIXME: Open folder '/n,'
  135. +    }
  136. +    break;
  137. +    
  138. +    case ACTION_ROOT:
  139. +        //FIXME /root,
  140. +    break;
  141. +    
  142. +    case ACTION_DEFAULT:
  143. +    {
  144. +        if(SUCCEEDED(SHGetFolderPath(NULL,
  145. +                             CSIDL_PROFILE|CSIDL_FLAG_CREATE,
  146. +                             NULL,
  147. +                             0,
  148. +                             szProfilePath)))
  149. +        {
  150. +            TCHAR str[255];
  151. +            _stprintf(str, _T("Open: %s"), szProfilePath);
  152. +            MessageBox(0, str, 0, MB_OK);
  153. +           // ShellExecute(NULL, NULL, szProfilePath, NULL, NULL, SW_SHOWNORMAL); //Enable ShellExecute and explorer will go to infinitive loop
  154. +        }
  155. +    }
  156. +    break;
  157. +    
  158. +    default:
  159. +        action = ACTION_DEFAULT;
  160. +    break;
  161. +    }
  162. +    return TRUE;
  163. +}
  164. +
  165. +BOOL ProcessCmdLine(LPWSTR lpCmdLine)
  166. +{
  167. +    EXPLORER_ACTION action = ACTION_DEFAULT;
  168. +    LPWSTR s = lpCmdLine;       /* command line pointer */
  169. +    WCHAR ch = *s;              /* current character */
  170. +
  171. +    while (ch && (ch == L'/'))
  172. +    {
  173. +        WCHAR chu;
  174. +        WCHAR ch2;
  175. +
  176. +        s++;
  177. +        ch = *s;
  178. +        ch2 = *(s + 1);
  179. +        chu = (WCHAR)towupper(ch);
  180. +        if (!ch2 || iswspace(ch2))
  181. +        {
  182. +            {
  183. +                switch (chu)
  184. +                {
  185. +                case L'E':
  186. +                {
  187. +                    action = ACTION_EXPLVIEW;
  188. +                }
  189. +                    break;
  190. +            
  191. +                default:
  192. +                {
  193. +                    action = ACTION_DEFAULT;
  194. +                }    
  195. +                    break;
  196. +                }
  197. +            }
  198. +            s++;
  199. +        }
  200. +        else
  201. +        {
  202. +            if (ch2 == L',')
  203. +            {
  204. +                switch (chu)
  205. +                {
  206. +                case L'N': //option '/n,'
  207. +              
  208. +                    s += 2;
  209. +                    action = ACTION_NEWWINDOW;
  210. +                    break;
  211. +                    default:
  212. +                    {
  213. +                        action = ACTION_DEFAULT;
  214. +                    }
  215. +                    break;
  216. +                }
  217. +            }
  218. +            else
  219. +            {
  220. +                if (!_wcsnicmp(s, L"SELECT,", 7)) //there we deal with multi-letter options
  221. +                {
  222. +                    s += 7;
  223. +                    action = ACTION_SELECT;
  224. +                }
  225. +                else
  226. +                s--;  // this is a file name, starting from '/'
  227. +                break;
  228. +            }
  229. +        }
  230. +        
  231. +        /* skip spaces to the next parameter */
  232. +        ch = *s;
  233. +        while (ch && iswspace(ch))
  234. +        {
  235. +            s++;
  236. +            ch = *s;
  237. +        }
  238. +    }
  239. +    
  240. +    return PerformExplAction(action, s);
  241. +}
  242. Index: base/shell/explorer-new/explorer.c
  243. ===================================================================
  244. --- base/shell/explorer-new/explorer.c  (revision 51611)
  245. +++ base/shell/explorer-new/explorer.c  (working copy)
  246. @@ -32,9 +32,6 @@
  247.      WORD wCodePage;
  248.  } LANGCODEPAGE, *PLANGCODEPAGE;
  249.  
  250. -/* undoc GUID */
  251. -DEFINE_GUID(CLSID_RebarBandSite, 0xECD4FC4D, 0x521C, 0x11D0, 0xB7, 0x92, 0x00, 0xA0, 0xC9, 0x03, 0x12, 0xE1);
  252. -
  253.  LONG
  254.  SetWindowStyle(IN HWND hWnd,
  255.                 IN LONG dwStyleMask,
  256. @@ -350,6 +347,19 @@
  257.      return bRet;
  258.  }
  259.  
  260. +static void HideMinimizedWindows(BOOL hide)
  261. +{
  262. +       MINIMIZEDMETRICS mm;
  263. +       mm.cbSize = sizeof(MINIMIZEDMETRICS);
  264. +       SystemParametersInfo(SPI_GETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mm, FALSE);
  265. +       if(hide)
  266. +               mm.iArrange |= ARW_HIDE;
  267. +       else
  268. +               mm.iArrange &= ~ARW_HIDE;
  269. +       SystemParametersInfo(SPI_SETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mm, FALSE);
  270. +}
  271. +
  272. +
  273.  INT WINAPI
  274.  _tWinMain(IN HINSTANCE hInstance,
  275.            IN HINSTANCE hPrevInstance,
  276. @@ -393,7 +403,9 @@
  277.          if (RegisterTrayWindowClass() && RegisterTaskSwitchWndClass())
  278.          {
  279.              Tray = CreateTrayWindow();
  280. -
  281. +                      
  282. +                       HideMinimizedWindows(TRUE);
  283. +                      
  284.              if (Tray != NULL)
  285.                  hShellDesktop = DesktopCreateWindow(Tray);
  286.          }
  287. @@ -404,10 +416,11 @@
  288.      }
  289.      else
  290.      {
  291. -        /* A shell is already loaded. Parse the command line arguments
  292. -           and unless we need to do something specific simply display
  293. -           the desktop in a separate explorer window */
  294. -        /* FIXME */
  295. +        /* A shell is already loaded. Parse the command line arguments */
  296. +        if (ProcessCmdLine(lpCmdLine))
  297. +        {
  298. +            return 0;
  299. +        }
  300.      }
  301.  
  302.      if (Tray != NULL)
  303. Index: base/shell/explorer-new/explorer.rbuild
  304. ===================================================================
  305. --- base/shell/explorer-new/explorer.rbuild     (revision 51611)
  306. +++ base/shell/explorer-new/explorer.rbuild     (working copy)
  307. @@ -24,5 +24,6 @@
  308.         <file>trayntfy.c</file>
  309.         <file>trayprop.c</file>
  310.         <file>traywnd.c</file>
  311. +       <file>command_line.c</file>
  312.         <file>explorer.rc</file>
  313.  </module>
  314. Index: base/shell/explorer-new/lang/bg-BG.rc
  315. ===================================================================
  316. --- base/shell/explorer-new/lang/bg-BG.rc       (revision 51611)
  317. +++ base/shell/explorer-new/lang/bg-BG.rc       (working copy)
  318. @@ -62,7 +62,7 @@
  319.  CAPTION "Taskbar"
  320.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  321.  BEGIN
  322. -    GROUPBOX        "Îáëèê íà çàäà÷íàòà ëåíòà", IDC_STATIC, 6,6,240,121
  323. +    GROUPBOX        "Îáëèê íà çàäà÷íàòà ëåíòà", IDC_STATIC, 6,6,240,134
  324.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  325.      AUTOCHECKBOX    "Çà&êëþ÷âàíåíà çàäà÷íàòà ëåíòà", IDC_TASKBARPROP_LOCK, 13,45,200,10
  326.      AUTOCHECKBOX    "Çàäà÷íàòà ëåíòà ñå êðèå &ñàìà", IDC_TASKBARPROP_HIDE, 13,58,200,10
  327. @@ -70,6 +70,7 @@
  328.      AUTOCHECKBOX    "&Ñêóï÷âàíå íà ñõîäíèòå áóòîíè â çàäà÷íàòà ëåíòà", IDC_TASKBARPROP_GROUP, 13,84,200,10
  329.      AUTOCHECKBOX    "Ïîêàçâàíå íà &áúðç ïóñê", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  330.      AUTOCHECKBOX    "&Ïîêàçâàíå íà ïðåãëåä íà ïðîçîðöèòå (èçîáðàæåíèéöà)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  331. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  332.  END
  333.  
  334.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  335. Index: base/shell/explorer-new/lang/cs-CZ.rc
  336. ===================================================================
  337. --- base/shell/explorer-new/lang/cs-CZ.rc       (revision 51611)
  338. +++ base/shell/explorer-new/lang/cs-CZ.rc       (working copy)
  339. @@ -65,7 +65,7 @@
  340.  CAPTION "Hlavní panel"
  341.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  342.  BEGIN
  343. -    GROUPBOX        "Vzhled hlavního panelu", IDC_STATIC, 6,6,240,121
  344. +    GROUPBOX        "Vzhled hlavního panelu", IDC_STATIC, 6,6,240,134
  345.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  346.      AUTOCHECKBOX    "Uzamknout &hlavní panel", IDC_TASKBARPROP_LOCK, 13,45,200,10
  347.      AUTOCHECKBOX    "&Automaticky sktývat hlavní panel", IDC_TASKBARPROP_HIDE, 13,58,200,10
  348. @@ -73,6 +73,7 @@
  349.      AUTOCHECKBOX    "&Seskupovat podobná tlaèítka hlavního panelu", IDC_TASKBARPROP_GROUP, 13,84,200,10
  350.      AUTOCHECKBOX    "Zobrazit &panel Snadné spuštìní", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  351.      AUTOCHECKBOX    "Zobrazit &náhledy oken", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  352. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  353.  END
  354.  
  355.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  356. Index: base/shell/explorer-new/lang/de-DE.rc
  357. ===================================================================
  358. --- base/shell/explorer-new/lang/de-DE.rc       (revision 51611)
  359. +++ base/shell/explorer-new/lang/de-DE.rc       (working copy)
  360. @@ -59,7 +59,7 @@
  361.  CAPTION "Taskleiste"
  362.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  363.  BEGIN
  364. -    GROUPBOX        "Taskleiste", IDC_STATIC, 6,6,240,121
  365. +    GROUPBOX        "Taskleiste", IDC_STATIC, 6,6,240,134
  366.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  367.      AUTOCHECKBOX    "Task&leiste fixieren", IDC_TASKBARPROP_LOCK, 13,45,200,10
  368.      AUTOCHECKBOX    "Taskleiste a&utom. verstecken", IDC_TASKBARPROP_HIDE, 13,58,200,10
  369. @@ -67,6 +67,7 @@
  370.      AUTOCHECKBOX    "Ähnliche Buttons &gruppieren", IDC_TASKBARPROP_GROUP, 13,84,200,10
  371.      AUTOCHECKBOX    "Schnellstartleiste &anzeigen", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  372.      AUTOCHECKBOX    "Fenstervor&schau anzeigen", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  373. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  374.  END
  375.  
  376.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  377. Index: base/shell/explorer-new/lang/en-US.rc
  378. ===================================================================
  379. --- base/shell/explorer-new/lang/en-US.rc       (revision 51611)
  380. +++ base/shell/explorer-new/lang/en-US.rc       (working copy)
  381. @@ -59,7 +59,7 @@
  382.  CAPTION "Taskbar"
  383.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  384.  BEGIN
  385. -    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,121
  386. +    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,134
  387.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  388.      AUTOCHECKBOX    "&Lock the taskbar", IDC_TASKBARPROP_LOCK, 13,45,200,10
  389.      AUTOCHECKBOX    "A&uto-hide the taskbar", IDC_TASKBARPROP_HIDE, 13,58,200,10
  390. @@ -67,6 +67,7 @@
  391.      AUTOCHECKBOX    "&Group similar taskbar buttons", IDC_TASKBARPROP_GROUP, 13,84,200,10
  392.      AUTOCHECKBOX    "Show &Quick Launch", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  393.      AUTOCHECKBOX    "&Show window previews (thumbnails)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  394. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  395.  END
  396.  
  397.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  398. @@ -127,3 +128,22 @@
  399.  BEGIN
  400.      IDS_TASKBAR_STARTMENU_PROP_CAPTION "Taskbar and Start Menu Properties"
  401.  END
  402. +
  403. +STRINGTABLE DISCARDABLE
  404. +BEGIN
  405. +    IDS_USAGESYNTAX  "Syntax:\n"
  406. +    /* "EXPLORER.EXE [/n][/e][,/root,<object>][[,/select],<sub object>]\n"
  407. +    "Usage:\n"
  408. +    "/n:  Opens a new window in single-paned (My Computer) view for each item\n"
  409. +    "selected, even if the new window duplicates a window that is\n"
  410. +    "already open.\n"
  411. +    "/e:  Uses ReactOS Explorer view. ReactOS Explorer view is most similar\n"
  412. +    "to File Manager in Windows version 3.x. Note that the default view\n"
  413. +    "is Open view.\n"
  414. +    "/root,<object>:  Specifies the root level of the specified view. The\n"
  415. +    "default is to use the normal namespace root (the desktop).\n"
  416. +    "Whatever is specified is the root for the display.\n"
  417. +    "/select,<sub object>:  Specifies the folder to receive the initial\n"
  418. +    "focus. If '/select' is used, the parent folder\n"
  419. +    "is opened and the specified object is selected.\n"; */
  420. +END
  421. Index: base/shell/explorer-new/lang/es-ES.rc
  422. ===================================================================
  423. --- base/shell/explorer-new/lang/es-ES.rc       (revision 51611)
  424. +++ base/shell/explorer-new/lang/es-ES.rc       (working copy)
  425. @@ -68,7 +68,7 @@
  426.  CAPTION "Barra de tareas"
  427.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  428.  BEGIN
  429. -    GROUPBOX        "Apariencia de la Barra de tareas ", IDC_STATIC, 6,6,240,121
  430. +    GROUPBOX        "Apariencia de la Barra de tareas ", IDC_STATIC, 6,6,240,134
  431.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  432.      AUTOCHECKBOX    "&Bloquear la barra de tareas", IDC_TASKBARPROP_LOCK, 13,45,200,10
  433.      AUTOCHECKBOX    "Ocultar automáticam&ente la barra de tareas", IDC_TASKBARPROP_HIDE, 13,58,200,10
  434. @@ -76,6 +76,7 @@
  435.      AUTOCHECKBOX    "&Agrupar botones similares  de la barra de tareas", IDC_TASKBARPROP_GROUP, 13,84,200,10
  436.      AUTOCHECKBOX    "Mostrar Inicio rápi&do", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  437.      AUTOCHECKBOX    "M&ostrar vista previa de las ventanas (miniaturas)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  438. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  439.  END
  440.  
  441.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  442. Index: base/shell/explorer-new/lang/fr-FR.rc
  443. ===================================================================
  444. --- base/shell/explorer-new/lang/fr-FR.rc       (revision 51611)
  445. +++ base/shell/explorer-new/lang/fr-FR.rc       (working copy)
  446. @@ -59,7 +59,7 @@
  447.  CAPTION "Taskbar"
  448.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  449.  BEGIN
  450. -    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,121
  451. +    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,134
  452.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  453.      AUTOCHECKBOX    "&Lock the taskbar", IDC_TASKBARPROP_LOCK, 13,45,200,10
  454.      AUTOCHECKBOX    "A&uto-hide the taskbar", IDC_TASKBARPROP_HIDE, 13,58,200,10
  455. @@ -67,6 +67,7 @@
  456.      AUTOCHECKBOX    "&Group similar taskbar buttons", IDC_TASKBARPROP_GROUP, 13,84,200,10
  457.      AUTOCHECKBOX    "Show &Quick Launch", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  458.      AUTOCHECKBOX    "&Show window previews (thumbnails)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  459. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  460.  END
  461.  
  462.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  463. Index: base/shell/explorer-new/lang/it-IT.rc
  464. ===================================================================
  465. --- base/shell/explorer-new/lang/it-IT.rc       (revision 51611)
  466. +++ base/shell/explorer-new/lang/it-IT.rc       (working copy)
  467. @@ -59,7 +59,7 @@
  468.  CAPTION "Barra delle applicazioni"
  469.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  470.  BEGIN
  471. -    GROUPBOX        "Aspetto della Barra delle applicazioni", IDC_STATIC, 6,6,240,121
  472. +    GROUPBOX        "Aspetto della Barra delle applicazioni", IDC_STATIC, 6,6,240,134
  473.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  474.      AUTOCHECKBOX    "&Bloccare la Barra delle applicazioni", IDC_TASKBARPROP_LOCK, 13,45,200,10
  475.      AUTOCHECKBOX    "N&ascondere automaticamente", IDC_TASKBARPROP_HIDE, 13,58,200,10
  476. @@ -67,6 +67,7 @@
  477.      AUTOCHECKBOX    "&Raggruppare pulsanti simili", IDC_TASKBARPROP_GROUP, 13,84,200,10
  478.      AUTOCHECKBOX    "Mostrare Avvio &veloce", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  479.      AUTOCHECKBOX    "&Mostrare anteprima delle finestre (miniature)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  480. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  481.  END
  482.  
  483.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  484. Index: base/shell/explorer-new/lang/ja-JP.rc
  485. ===================================================================
  486. --- base/shell/explorer-new/lang/ja-JP.rc       (revision 51611)
  487. +++ base/shell/explorer-new/lang/ja-JP.rc       (working copy)
  488. @@ -59,7 +59,7 @@
  489.  CAPTION "ƒ^ƒXƒNƒo["
  490.  FONT 9, "MS UI Gothic", 0, 0, 0x1
  491.  BEGIN
  492. -    GROUPBOX        "ƒ^ƒXƒNƒo[‚ÌŠOŠÏ", IDC_STATIC, 6,6,240,121
  493. +    GROUPBOX        "ƒ^ƒXƒNƒo[‚ÌŠOŠÏ", IDC_STATIC, 6,6,240,134
  494.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  495.      AUTOCHECKBOX    "ƒ^ƒXƒNƒo[‚ðŒÅ’è‚·‚é(&L)", IDC_TASKBARPROP_LOCK, 13,45,200,10
  496.      AUTOCHECKBOX    "ƒ^ƒXƒNƒo[‚ðŽ©“®“I‚ɉB‚·(&U)", IDC_TASKBARPROP_HIDE, 13,58,200,10
  497. @@ -67,6 +67,7 @@
  498.      AUTOCHECKBOX    "—ÞŽ—‚·‚éƒ^ƒXƒNƒo[ƒ{ƒ^ƒ“‚ðƒOƒ‹[ƒv‰»‚·‚é(&G)", IDC_TASKBARPROP_GROUP, 13,84,200,10
  499.      AUTOCHECKBOX    "ƒNƒCƒbƒN‹N“®‚Ì•\ަ(&Q)", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  500.      AUTOCHECKBOX    "ƒEƒCƒ“ƒhƒE‚̃vƒŒƒrƒ…[‚ð•\ަ‚·‚é(ƒTƒ€ƒlƒCƒ‹)(&S)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  501. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  502.  END
  503.  
  504.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  505. Index: base/shell/explorer-new/lang/ko-KR.rc
  506. ===================================================================
  507. --- base/shell/explorer-new/lang/ko-KR.rc       (revision 51611)
  508. +++ base/shell/explorer-new/lang/ko-KR.rc       (working copy)
  509. @@ -64,7 +64,7 @@
  510.  CAPTION "Taskbar"
  511.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  512.  BEGIN
  513. -    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,121
  514. +    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,134
  515.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  516.      AUTOCHECKBOX    "&Lock the taskbar", IDC_TASKBARPROP_LOCK, 13,45,200,10
  517.      AUTOCHECKBOX    "A&uto-hide the taskbar", IDC_TASKBARPROP_HIDE, 13,58,200,10
  518. @@ -72,6 +72,7 @@
  519.      AUTOCHECKBOX    "&Group similar taskbar buttons", IDC_TASKBARPROP_GROUP, 13,84,200,10
  520.      AUTOCHECKBOX    "Show &Quick Launch", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  521.      AUTOCHECKBOX    "&Show window previews (thumbnails)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  522. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  523.  END
  524.  
  525.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  526. Index: base/shell/explorer-new/lang/lt-LT.rc
  527. ===================================================================
  528. --- base/shell/explorer-new/lang/lt-LT.rc       (revision 51611)
  529. +++ base/shell/explorer-new/lang/lt-LT.rc       (working copy)
  530. @@ -63,7 +63,7 @@
  531.  CAPTION "Taskbar"
  532.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  533.  BEGIN
  534. -    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,121
  535. +    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,134
  536.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  537.      AUTOCHECKBOX    "&Lock the taskbar", IDC_TASKBARPROP_LOCK, 13,45,200,10
  538.      AUTOCHECKBOX    "A&uto-hide the taskbar", IDC_TASKBARPROP_HIDE, 13,58,200,10
  539. @@ -71,6 +71,7 @@
  540.      AUTOCHECKBOX    "&Group similar taskbar buttons", IDC_TASKBARPROP_GROUP, 13,84,200,10
  541.      AUTOCHECKBOX    "Show &Quick Launch", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  542.      AUTOCHECKBOX    "&Show window previews (thumbnails)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  543. +       AUTOCHECKBOX    "Rodyti sekundes", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  544.  END
  545.  
  546.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  547. Index: base/shell/explorer-new/lang/nl-NL.rc
  548. ===================================================================
  549. --- base/shell/explorer-new/lang/nl-NL.rc       (revision 51611)
  550. +++ base/shell/explorer-new/lang/nl-NL.rc       (working copy)
  551. @@ -59,7 +59,7 @@
  552.  CAPTION "Taakbalk"
  553.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  554.  BEGIN
  555. -    GROUPBOX        "Taakbalkweergave", IDC_STATIC, 6,6,240,121
  556. +    GROUPBOX        "Taakbalkweergave", IDC_STATIC, 6,6,240,134
  557.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  558.      AUTOCHECKBOX    "Taakbalk &vergrendelen", IDC_TASKBARPROP_LOCK, 13,45,200,10
  559.      AUTOCHECKBOX    "Taakbalk a&utomatisch verbergen", IDC_TASKBARPROP_HIDE, 13,58,200,10
  560. @@ -67,6 +67,7 @@
  561.      AUTOCHECKBOX    "&Gelijksoortige knoppen gegroepeerd weergeven", IDC_TASKBARPROP_GROUP, 13,84,200,10
  562.      AUTOCHECKBOX    "Werkbalk &Snel starten weergeven", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  563.      AUTOCHECKBOX    "Venstervoorbeelden (miniatuurweergaven) &weergeven", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  564. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  565.  END
  566.  
  567.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  568. Index: base/shell/explorer-new/lang/no-NO.rc
  569. ===================================================================
  570. --- base/shell/explorer-new/lang/no-NO.rc       (revision 51611)
  571. +++ base/shell/explorer-new/lang/no-NO.rc       (working copy)
  572. @@ -59,7 +59,7 @@
  573.  CAPTION "Oppgavelinje"
  574.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  575.  BEGIN
  576. -    GROUPBOX        "Oppgavelinjens egenskaper", IDC_STATIC, 6,6,240,121
  577. +    GROUPBOX        "Oppgavelinjens egenskaper", IDC_STATIC, 6,6,240,134
  578.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  579.      AUTOCHECKBOX    "&Lås oppgavelinjen", IDC_TASKBARPROP_LOCK, 13,45,200,10
  580.      AUTOCHECKBOX    "&Skjul oppgavelinjen automatisk", IDC_TASKBARPROP_HIDE, 13,58,200,10
  581. @@ -67,6 +67,7 @@
  582.      AUTOCHECKBOX    "&Grupper og lignende knapper på oppgavelinjen", IDC_TASKBARPROP_GROUP, 13,84,200,10
  583.      AUTOCHECKBOX    "Vis &hurtigstart", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  584.      AUTOCHECKBOX    "&Vis vinduforhåndvisning (miniaturbilde)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  585. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  586.  END
  587.  
  588.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  589. Index: base/shell/explorer-new/lang/pl-PL.rc
  590. ===================================================================
  591. --- base/shell/explorer-new/lang/pl-PL.rc       (revision 51611)
  592. +++ base/shell/explorer-new/lang/pl-PL.rc       (working copy)
  593. @@ -62,7 +62,7 @@
  594.  CAPTION "Pasek zadañ"
  595.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  596.  BEGIN
  597. -    GROUPBOX        "Wygl¹d paska zadañ", IDC_STATIC, 6,6,240,121
  598. +    GROUPBOX        "Wygl¹d paska zadañ", IDC_STATIC, 6,6,240,134
  599.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  600.      AUTOCHECKBOX    "&Zablokuj pasek zadañ", IDC_TASKBARPROP_LOCK, 13,45,200,10
  601.      AUTOCHECKBOX    "A&utomatyczne ukrywanie paska zadañ", IDC_TASKBARPROP_HIDE, 13,58,200,10
  602. @@ -70,6 +70,7 @@
  603.      AUTOCHECKBOX    "&Grupuj programy w pasku zadañ", IDC_TASKBARPROP_GROUP, 13,84,200,10
  604.      AUTOCHECKBOX    "Poka¿ pasek &Szybkiego uruchamiania", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  605.      AUTOCHECKBOX    "&Poka¿ podgl¹d okien (miniaturki)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  606. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  607.  END
  608.  
  609.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  610. Index: base/shell/explorer-new/lang/ro-RO.rc
  611. ===================================================================
  612. --- base/shell/explorer-new/lang/ro-RO.rc       (revision 51611)
  613. +++ base/shell/explorer-new/lang/ro-RO.rc       (working copy)
  614. @@ -59,7 +59,7 @@
  615.  CAPTION "Taskbar"
  616.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  617.  BEGIN
  618. -    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,121
  619. +    GROUPBOX        "Taskbar appearance", IDC_STATIC, 6,6,240,134
  620.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  621.      AUTOCHECKBOX    "&Lock the taskbar", IDC_TASKBARPROP_LOCK, 13,45,200,10
  622.      AUTOCHECKBOX    "A&uto-hide the taskbar", IDC_TASKBARPROP_HIDE, 13,58,200,10
  623. @@ -67,6 +67,7 @@
  624.      AUTOCHECKBOX    "&Group similar taskbar buttons", IDC_TASKBARPROP_GROUP, 13,84,200,10
  625.      AUTOCHECKBOX    "Show &Quick Launch", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  626.      AUTOCHECKBOX    "&Show window previews (thumbnails)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  627. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  628.  END
  629.  
  630.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  631. Index: base/shell/explorer-new/lang/ru-RU.rc
  632. ===================================================================
  633. --- base/shell/explorer-new/lang/ru-RU.rc       (revision 51611)
  634. +++ base/shell/explorer-new/lang/ru-RU.rc       (working copy)
  635. @@ -61,7 +61,7 @@
  636.  CAPTION "Ïàíåëü çàäà÷"
  637.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  638.  BEGIN
  639. -    GROUPBOX        "Ñâîéñòâà ïàíåëè çàäà÷", IDC_STATIC, 6,6,240,121
  640. +    GROUPBOX        "Ñâîéñòâà ïàíåëè çàäà÷", IDC_STATIC, 6,6,240,134
  641.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  642.      AUTOCHECKBOX    "&Çàêðåïèòü ïàíåëü çàäà÷", IDC_TASKBARPROP_LOCK, 13,45,200,10
  643.      AUTOCHECKBOX    "&Àâòîìàòè÷åñêè ñêðûâàòü ïàíåëü çàäà÷", IDC_TASKBARPROP_HIDE, 13,58,200,10
  644. @@ -69,6 +69,7 @@
  645.      AUTOCHECKBOX    "&Ãðóïïèðîâàòü ñõîæèå êíîïêè", IDC_TASKBARPROP_GROUP, 13,84,200,10
  646.      AUTOCHECKBOX    "Îòîáðàæàòü ïàíåëü &áûñòðîãî çàïóñêà", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  647.      AUTOCHECKBOX    "Îòîáðà&æàòü îáðàçöû îêîí (ýñêèçû)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  648. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  649.  END
  650.  
  651.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  652. Index: base/shell/explorer-new/lang/sk-SK.rc
  653. ===================================================================
  654. --- base/shell/explorer-new/lang/sk-SK.rc       (revision 51611)
  655. +++ base/shell/explorer-new/lang/sk-SK.rc       (working copy)
  656. @@ -64,7 +64,7 @@
  657.  CAPTION "Panel úloh"
  658.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  659.  BEGIN
  660. -    GROUPBOX        "Vzh¾ad panela úloh", IDC_STATIC, 6,6,240,121
  661. +    GROUPBOX        "Vzh¾ad panela úloh", IDC_STATIC, 6,6,240,134
  662.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  663.      AUTOCHECKBOX    "Za&mknú panel úloh", IDC_TASKBARPROP_LOCK, 13,45,200,10
  664.      AUTOCHECKBOX    "A&utomaticky skýva panel úloh", IDC_TASKBARPROP_HIDE, 13,58,200,10
  665. @@ -72,6 +72,7 @@
  666.      AUTOCHECKBOX    "&Zoskupova podobné tlaèidlá na paneli s nástrojmi", IDC_TASKBARPROP_GROUP, 13,84,200,10
  667.      AUTOCHECKBOX    "Zobrazi panel &Rýchle spustenie", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  668.      AUTOCHECKBOX    "Z&obrazi náh¾ady okien (miniatúry)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  669. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  670.  END
  671.  
  672.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  673. Index: base/shell/explorer-new/lang/uk-UA.rc
  674. ===================================================================
  675. --- base/shell/explorer-new/lang/uk-UA.rc       (revision 51611)
  676. +++ base/shell/explorer-new/lang/uk-UA.rc       (working copy)
  677. @@ -67,7 +67,7 @@
  678.  CAPTION "Ïàíåëü çàäà÷"
  679.  FONT 8, "MS Shell Dlg", 0, 0, 0x1
  680.  BEGIN
  681. -    GROUPBOX        "Âëàñòèâîñò³ ïàíåë³ çàäà÷", IDC_STATIC, 6,6,240,121
  682. +    GROUPBOX        "Âëàñòèâîñò³ ïàíåë³ çàäà÷", IDC_STATIC, 6,6,240,134
  683.      CONTROL         "", IDC_TASKBARPROP_TASKBARBITMAP, "Static", SS_BITMAP | SS_SUNKEN, 13,18,224,21
  684.      AUTOCHECKBOX    "&Çàáîðîíèòè ïàíåëü çàäà÷", IDC_TASKBARPROP_LOCK, 13,45,200,10
  685.      AUTOCHECKBOX    "&Àâòîìàòè÷íî ïðèõîâóâàòè ïàíåëü çàäà÷", IDC_TASKBARPROP_HIDE, 13,58,200,10
  686. @@ -75,6 +75,7 @@
  687.      AUTOCHECKBOX    "&Ãðóïóâàòè ñõîæ³ êíîïêè", IDC_TASKBARPROP_GROUP, 13,84,200,10
  688.      AUTOCHECKBOX    "³äîáðàæàòè ïàíåëü &øâèäêîãî çàïóñêó", IDC_TASKBARPROP_SHOWQL, 13,97,200,10
  689.      AUTOCHECKBOX    "&³äîáðàæàòè çðàçêè â³êîí (åñê³çè)", IDC_TASKBARPROP_WNDPREV, 13,110,200,10
  690. +       AUTOCHECKBOX    "Show seconds", IDC_TASKBARPROP_SECONDS, 13,123,200,10
  691.  END
  692.  
  693.  IDD_TASKBARPROP_STARTMENU DIALOGEX 0, 0, 252, 218
  694. Index: base/shell/explorer-new/precomp.h
  695. ===================================================================
  696. --- base/shell/explorer-new/precomp.h   (revision 51611)
  697. +++ base/shell/explorer-new/precomp.h   (working copy)
  698. @@ -385,6 +385,10 @@
  699.                      IN BOOL bHideClock);
  700.  
  701.  /*
  702. + * command_lince.c
  703. + */
  704. +BOOL ProcessCmdLine(LPWSTR lpCmdLine);
  705. +/*
  706.   * taskswnd.c
  707.   */
  708.  
  709. Index: base/shell/explorer-new/resource.h
  710. ===================================================================
  711. --- base/shell/explorer-new/resource.h  (revision 51611)
  712. +++ base/shell/explorer-new/resource.h  (working copy)
  713. @@ -63,6 +63,7 @@
  714.  #define IDC_TASKBARPROP_GROUP 2005
  715.  #define IDC_TASKBARPROP_SHOWQL 2006
  716.  #define IDC_TASKBARPROP_WNDPREV 2007
  717. +#define IDC_TASKBARPROP_SECONDS 2008
  718.  
  719.  #define IDB_TASKBARPROP_AUTOHIDE 2050
  720.  #define IDB_TASKBARPROP_LOCK_GROUP_NOQL 2051
  721. @@ -92,6 +93,7 @@
  722.  #define IDC_TASKBARPROP_VOLUME 2205
  723.  #define IDC_TASKBARPROP_NETWORK 2206
  724.  #define IDC_TASKBARPROP_POWER 2207
  725. +#define IDS_USAGESYNTAX 2208
  726.  
  727.  /* Taskbar properties, toolbars */
  728.  #define IDD_TASKBARPROP_TOOLBARS 2300
  729. Index: base/shell/explorer-new/trayntfy.c
  730. ===================================================================
  731. --- base/shell/explorer-new/trayntfy.c  (revision 51611)
  732. +++ base/shell/explorer-new/trayntfy.c  (working copy)
  733. @@ -257,7 +257,15 @@
  734.  
  735.          if (ClockWndFormats[i].IsTime)
  736.          {
  737. +            if (blShowSeconds == FALSE)
  738.              iRet = GetTimeFormat(LOCALE_USER_DEFAULT,
  739. +                                 TIME_NOSECONDS,
  740. +                                 &This->LocalTime,                                              
  741. +                                 ClockWndFormats[i].lpFormat,
  742. +                                 This->szLines[i],
  743. +                                 BufSize);
  744. +            else
  745. +            iRet = GetTimeFormat(LOCALE_USER_DEFAULT,
  746.                                   ClockWndFormats[i].dwFormatFlags,
  747.                                   &This->LocalTime,
  748.                                   ClockWndFormats[i].lpFormat,
  749. @@ -276,11 +284,6 @@
  750.  
  751.          if (iRet != 0 && i == 0)
  752.          {
  753. -                       if (blShowSeconds == FALSE)
  754. -                       {
  755. -                               (This->szLines[0][5] = '\0');
  756. -                       };
  757. -                      
  758.              /* Set the window text to the time only */
  759.              SetWindowText(This->hWnd,
  760.                            This->szLines[i]);