Huw Davies (@huw) commented about programs/notepad/notepad.rc:
> MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT
> MENUITEM "&Replace...\tCtrl+H", CMD_REPLACE
> }
> +POPUP "&View"
> +{
> + MENUITEM "&Status Bar", CMD_SBAR
> + }
Another trailing space after `"&View"` and a space before the `}`.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7878
Huw Davies (@huw) commented about programs/notepad/main.c:
> return dpi;
> }
>
> +VOID ToggleStatusBar(VOID)
`static` (as the function isn't used outside the file).
Also, and I know it not the case in this file, but let's use `void` rather than `VOID`.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7873
Huw Davies (@huw) commented about programs/notepad/dialog.c:
> Globals.bWrapLongLines = !Globals.bWrapLongLines;
> CheckMenuItem(GetMenu(Globals.hMainWnd), CMD_WRAP,
> MF_BYCOMMAND | (Globals.bWrapLongLines ? MF_CHECKED : MF_UNCHECKED));
> + SendMessageW(Globals.hMainWnd,WM_SIZE,0,MAKELPARAM(rc.right,rc.bottom));
This looks hacky. You probably want to move the code that you're adding to the main window's WM_SIZE handler to a helper function and call that directly from here.
Also, and this applies throughout, please leave a space after each comma.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7872
Generally I think this MR should be split into two separate ones. That'll give us a chance to get the status bar work in before we worry about the goto dialog box.
So, just concentrating on the status bar commit, I'd start off by splitting that into two commits. First add the code that creates and displays the status bar (it doesn't need to display any text at this point). Then add a second commit that updates the status bar with line / col info.
As @besentv mentioned, the commit messages are still not quite there - we terminate the subject with a period.
I'll comment on some of the code below.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7869