9 Sep
2022
9 Sep
'22
8:18 a.m.
Huw Davies (@huw) commented about programs/notepad/main.c:
+ GetClientRect(Globals.hMainWnd, &rc); + ShowWindow(Globals.hStatusBar,Globals.bStatusBar); + updateWindowSize(MAKELPARAM(rc.right,rc.bottom)); +} + +void updateWindowSize(DWORD WidthHeight) +{ + int StatusBarHeight = 0; + + if(Globals.bStatusBar) + { + RECT SBarRect; + + SendMessageW(Globals.hStatusBar,WM_SIZE, 0, 0); + GetWindowRect(Globals.hStatusBar, &SBarRect); + StatusBarHeight = (SBarRect.bottom-SBarRect.top); Add a space either side of the '-'.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_8072