Skip to content

Commit

Permalink
Always show on tray icon click
Browse files Browse the repository at this point in the history
  • Loading branch information
CasEbb committed Jan 29, 2018
1 parent 63c5951 commit bcab596
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions code/Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_NOTIFYICON:
switch (LOWORD(lParam)) {
case NIN_SELECT:
if (IsWindowVisible(hwndMain)) {
SetForegroundWindow(hwndMain);
}
else {
ShowWindow(hwndMain, SW_SHOW);
}
ShowWindow(hwndMain, SW_SHOWNORMAL);
SetForegroundWindow(hwndMain);
break;
case WM_CONTEXTMENU:
{
Expand Down

0 comments on commit bcab596

Please sign in to comment.