Skip to content

Commit

Permalink
fixed issue where combobox would not disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Stateford committed Oct 11, 2018
1 parent f3fa9ee commit 5fce15b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Display-Lock/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ void mainWindowInit(HWND hDlg, MAIN_WINDOW_CONTROLS *mainWindowControls)

tci.pszText = L"Settings";
TabCtrl_InsertItem(mainWindowControls->tabCtrl, SETTINGS_VIEW, &tci);


}


Expand All @@ -134,13 +132,15 @@ void windowsButtonStart(MENU *menu, WINDOW_VIEW_CONTROLS *windowControls, ARGS *
menu->startThread(&windowControls->clipThread, cursorLock, (void*)args);
EnableWindow(windowControls->startButton, FALSE);
EnableWindow(windowControls->stopButton, TRUE);
EnableWindow(windowControls->comboBox, FALSE);
}

void windowsButtonStop(MENU menu, WINDOW_VIEW_CONTROLS *windowControls)
{
*windowControls->runningClip = FALSE;
EnableWindow(windowControls->startButton, TRUE);
EnableWindow(windowControls->stopButton, FALSE);
EnableWindow(windowControls->comboBox, TRUE);
menu.closeThread(windowControls->clipThread, windowControls->runningClip);
}

Expand Down

0 comments on commit 5fce15b

Please sign in to comment.