Skip to content

Commit 019fa24

Browse files
Unify icons & bump to 0.2
1 parent e6f5b0e commit 019fa24

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

ExplorerFrame/ExplorerFrame.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
5656
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
5757
wcex.lpszMenuName = NULL;
5858
wcex.lpszClassName = L"ExplorerFrame";
59-
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
59+
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_EXPLORERFRAME));
6060

6161
auto a = RegisterClassExW(&wcex);
6262
return a;
@@ -138,7 +138,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
138138
case WM_DESTROY:
139139
{
140140
for (const auto& [_, value] : hookingMap) {
141-
// Try to unhook DLL (wil::unique_hhook::get()), do nothing if failed.
142141
try {
143142
UnhookWindowsHookEx(value);
144143
}
@@ -154,7 +153,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
154153
case WM_CONTEXTMENU:
155154
{
156155
// Get the mouse location using WPARAM.
157-
// Note: if the mouse is outside the notification icon rect, use the center point of the icon instead.
158156
POINT pt = { GET_X_LPARAM(wParam), GET_Y_LPARAM(wParam) };
159157
HMENU hMenu = CreatePopupMenu();
160158
AppendMenu(hMenu, MF_STRING, 1, L"Exit");

ExplorerFrame/ExplorerFrame.rc

-126 Bytes
Binary file not shown.

ExplorerFrame/resource.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#define IDC_MYICON 2
66
#define IDD_EXPLORERFRAME_DIALOG 102
77
#define IDI_EXPLORERFRAME 107
8-
#define IDI_SMALL 108
98
#define IDR_MAINFRAME 128
109
#define IDC_STATIC -1
1110

ExplorerFrame/small.ico

-45.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)