Re: [PATCH v4 0/2] MR787: notepad: Add status bar and goto line dialog
7 Sep
2022
7 Sep
'22
1:23 p.m.
Huw Davies (@huw) commented about programs/notepad/main.c:
} }
+LRESULT CALLBACK EDIT_CallBackProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + switch (msg) + { + case WM_KEYDOWN: + UpdateStatusBar(); + break; + case WM_KEYUP: + UpdateStatusBar(); + break; + case WM_MBUTTONDOWN: + UpdateStatusBar(); + break;
This could all be simplifed: ```c case WM_KEYDOWN: case WM_KEYUP: case WM_MBUTTONDOWN: ... UpdateStatusBar(); break; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7875
1201
Age (days ago)
1201
Last active (days ago)
0 comments
1 participants
participants (1)
-
Huw Davies (@huw)