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