Skip to content

Commit

Permalink
Unify icons & bump to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dongle-the-gadget committed Nov 13, 2022
1 parent e6f5b0e commit 019fa24
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions ExplorerFrame/ExplorerFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wcex.lpszMenuName = NULL;
wcex.lpszClassName = L"ExplorerFrame";
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_EXPLORERFRAME));

auto a = RegisterClassExW(&wcex);
return a;
Expand Down Expand Up @@ -138,7 +138,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
{
for (const auto& [_, value] : hookingMap) {
// Try to unhook DLL (wil::unique_hhook::get()), do nothing if failed.
try {
UnhookWindowsHookEx(value);
}
Expand All @@ -154,7 +153,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_CONTEXTMENU:
{
// Get the mouse location using WPARAM.
// Note: if the mouse is outside the notification icon rect, use the center point of the icon instead.
POINT pt = { GET_X_LPARAM(wParam), GET_Y_LPARAM(wParam) };
HMENU hMenu = CreatePopupMenu();
AppendMenu(hMenu, MF_STRING, 1, L"Exit");
Expand Down
Binary file modified ExplorerFrame/ExplorerFrame.rc
Binary file not shown.
1 change: 0 additions & 1 deletion ExplorerFrame/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#define IDC_MYICON 2
#define IDD_EXPLORERFRAME_DIALOG 102
#define IDI_EXPLORERFRAME 107
#define IDI_SMALL 108
#define IDR_MAINFRAME 128
#define IDC_STATIC -1

Expand Down
Binary file removed ExplorerFrame/small.ico
Binary file not shown.

0 comments on commit 019fa24

Please sign in to comment.