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 '-'.