Skip to content

Commit

Permalink
added selecting from contextmenu brings window to foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
Stateford committed Oct 10, 2018
1 parent efacaf4 commit c546ca7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Display-Lock/DisplayLock.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
int wmId = LOWORD(wParam);
// Parse the menu selections:
// item from submenu in notifications
if (wParam >= SUBMENU_ITEM_BASE && wParam <= (SUBMENU_ITEM_BASE + 100) )
if (wParam >= SUBMENU_ITEM_BASE && wParam <= (SUBMENU_ITEM_BASE + 100))
{
settings.foreground = TRUE;
windowsButtonStart(&windowControls, &args, &running, ((int)wParam - SUBMENU_ITEM_BASE));
settings.foreground = FALSE;
}

switch (wmId)
{
Expand Down

0 comments on commit c546ca7

Please sign in to comment.