Skip to content

Commit

Permalink
Fix positional and exit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 3, 2024
1 parent 0de6a82 commit 86ccbda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetWindowText(widgets[Widgets::RUNNING], status.c_str());
}
if (LOWORD(wParam) == Widgets::EXIT) {
PostQuitMessage(0);
DestroyWindow(hwnd);
}
break;

Expand Down Expand Up @@ -263,8 +263,8 @@ void create_window() {
"BUTTON",
"Quit and Exit",
WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON,
40,
10,
50,
BUTTON_WIDTH,
BUTTON_HEIGHT,
hwnd,
Expand Down

0 comments on commit 86ccbda

Please sign in to comment.