Skip to content

Commit

Permalink
Debugging messageboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 4, 2024
1 parent 06bd0d0 commit 09f8213
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ class Application {
std::string status = running ? "Stop" : "Start";
SetWindowText(app->widgets[Widgets::RUNNING], status.c_str());
}
if ((HWND)lParam != app->widgets[Widgets::INTERVAL]) {
MessageBox(nullptr, "Handles do not match", "Debug", MB_OK);
}

if (HIWORD(wParam) == EN_KILLFOCUS && (HWND)lParam == app->widgets[Widgets::INTERVAL]) {
MessageBox(nullptr, "Failed", "Error", NULL);
Expand Down

0 comments on commit 09f8213

Please sign in to comment.