+ if (midend_wants_statusbar(fe->me)) {
+ fe->statusbar = CreateWindowEx(0, STATUSCLASSNAME, "ooh",
+ WS_CHILD | WS_VISIBLE,
+ 0, 0, 0, 0, /* status bar does these */
+ fe->hwnd, NULL, inst, NULL);
+ GetWindowRect(fe->statusbar, &sr);
+ SetWindowPos(fe->hwnd, NULL, 0, 0,
+ r.right - r.left, r.bottom - r.top + sr.bottom - sr.top,
+ SWP_NOMOVE | SWP_NOZORDER);
+ SetWindowPos(fe->statusbar, NULL, 0, y, x, sr.bottom - sr.top,
+ SWP_NOZORDER);
+ } else {
+ fe->statusbar = NULL;
+ }
+