@@ -2827,6 +2827,7 @@ XgGenerateNumberingFilename(HWND hwnd, LPCWSTR pszText, LPSYSTEMTIME pLocalTime,
2827
2827
2828
2828
XGStringW str = pszText;
2829
2829
2830
+ // 連番(%N, %1N, %2N, %3N, %4N, %5N, %6N)。
2830
2831
StringCchPrintfW (szN, _countof (szN), L" %d" , iFile);
2831
2832
StringCchPrintfW (szN1, _countof (szN1), L" %01d" , iFile);
2832
2833
StringCchPrintfW (szN2, _countof (szN2), L" %02d" , iFile);
@@ -2842,11 +2843,13 @@ XgGenerateNumberingFilename(HWND hwnd, LPCWSTR pszText, LPSYSTEMTIME pLocalTime,
2842
2843
xg_str_replace_all (str, L" %5N" , szN5);
2843
2844
xg_str_replace_all (str, L" %6N" , szN6);
2844
2845
2846
+ // マスのサイズ(%W, %H)。
2845
2847
StringCchPrintfW (szW, _countof (szW), L" %d" , xg_nCols);
2846
2848
StringCchPrintfW (szH, _countof (szH), L" %d" , xg_nRows);
2847
2849
xg_str_replace_all (str, L" %W" , szW);
2848
2850
xg_str_replace_all (str, L" %H" , szH);
2849
2851
2852
+ // 日時(%Y/%M/%D %h:%m:%s)。
2850
2853
StringCchPrintfW (szYear, _countof (szYear), L" %04d" , pLocalTime->wYear );
2851
2854
StringCchPrintfW (szMonth, _countof (szMonth), L" %02d" , pLocalTime->wMonth );
2852
2855
StringCchPrintfW (szDay, _countof (szDay), L" %02d" , pLocalTime->wDay );
@@ -2859,16 +2862,21 @@ XgGenerateNumberingFilename(HWND hwnd, LPCWSTR pszText, LPSYSTEMTIME pLocalTime,
2859
2862
xg_str_replace_all (str, L" %h" , szHour);
2860
2863
xg_str_replace_all (str, L" %m" , szMinute);
2861
2864
xg_str_replace_all (str, L" %s" , szSecond);
2865
+
2866
+ // 曜日(%w)。
2862
2867
xg_str_replace_all (str, L" %w" , aszWeekDay[pLocalTime->wDayOfWeek ]);
2863
2868
2869
+ // コンピュータ名(%C)。
2864
2870
DWORD cchComputer = _countof (szComputer);
2865
- GetComputerNameW (szComputer, &cchComputer);
2871
+ :: GetComputerNameW (szComputer, &cchComputer);
2866
2872
xg_str_replace_all (str, L" %C" , szComputer);
2867
2873
2874
+ // ユーザ名(%U)。
2868
2875
DWORD cchUser = _countof (szUser);
2869
- GetUserNameW (szUser, &cchUser);
2876
+ :: GetUserNameW (szUser, &cchUser);
2870
2877
xg_str_replace_all (str, L" %U" , szUser);
2871
2878
2879
+ // 二重パーセント(%%)。
2872
2880
xg_str_replace_all (str, L" %%" , L" %" );
2873
2881
2874
2882
return str;
0 commit comments