• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28315 (tree)
Time2018-07-24 02:18:18
Authorstefankueng

Log Message

Load the big icon for the WNDCLASS hIcon.

Change Summary

Incremental Difference

--- trunk/src/TortoiseUDiff/MainWindow.cpp (revision 28314)
+++ trunk/src/TortoiseUDiff/MainWindow.cpp (revision 28315)
@@ -61,7 +61,7 @@
6161 wcx.hCursor = nullptr;
6262 ResString clsname(hResource, IDS_APP_TITLE);
6363 wcx.lpszClassName = clsname;
64- wcx.hIcon = LoadIconEx(hResource, MAKEINTRESOURCE(IDI_TORTOISEUDIFF));
64+ wcx.hIcon = LoadIconEx(hResource, MAKEINTRESOURCE(IDI_TORTOISEUDIFF), GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
6565 wcx.hbrBackground = (HBRUSH)(COLOR_3DFACE+1);
6666 wcx.lpszMenuName = MAKEINTRESOURCE(IDC_TORTOISEUDIFF);
6767 wcx.hIconSm = LoadIconEx(wcx.hInstance, MAKEINTRESOURCE(IDI_TORTOISEUDIFF));
--- trunk/src/TortoiseBlame/TortoiseBlame.cpp (revision 28314)
+++ trunk/src/TortoiseBlame/TortoiseBlame.cpp (revision 28315)
@@ -1867,7 +1867,7 @@
18671867 wcex.cbClsExtra = 0;
18681868 wcex.cbWndExtra = 0;
18691869 wcex.hInstance = hResource;
1870- wcex.hIcon = LoadIconEx(hResource, (LPCTSTR)IDI_TORTOISEBLAME);
1870+ wcex.hIcon = LoadIconEx(hResource, MAKEINTRESOURCE(IDI_TORTOISEBLAME), GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
18711871 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
18721872 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
18731873 wcex.lpszMenuName = (LPCTSTR)IDC_TORTOISEBLAME;
@@ -1888,7 +1888,7 @@
18881888 wcex.cbClsExtra = 0;
18891889 wcex.cbWndExtra = 0;
18901890 wcex.hInstance = hResource;
1891- wcex.hIcon = LoadIconEx(hResource, (LPCTSTR)IDI_TORTOISEBLAME);
1891+ wcex.hIcon = LoadIconEx(hResource, MAKEINTRESOURCE(IDI_TORTOISEBLAME), GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
18921892 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
18931893 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
18941894 wcex.lpszMenuName = 0;
@@ -1909,7 +1909,7 @@
19091909 wcex.cbClsExtra = 0;
19101910 wcex.cbWndExtra = 0;
19111911 wcex.hInstance = hResource;
1912- wcex.hIcon = LoadIconEx(hResource, (LPCTSTR)IDI_TORTOISEBLAME);
1912+ wcex.hIcon = LoadIconEx(hResource, MAKEINTRESOURCE(IDI_TORTOISEBLAME), GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
19131913 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
19141914 wcex.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
19151915 wcex.lpszMenuName = 0;
@@ -1930,7 +1930,7 @@
19301930 wcex.cbClsExtra = 0;
19311931 wcex.cbWndExtra = 0;
19321932 wcex.hInstance = hResource;
1933- wcex.hIcon = LoadIconEx(hResource, (LPCTSTR)IDI_TORTOISEBLAME);
1933+ wcex.hIcon = LoadIconEx(hResource, MAKEINTRESOURCE(IDI_TORTOISEBLAME), GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
19341934 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
19351935 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
19361936 wcex.lpszMenuName = 0;
Show on old repository browser