|
Re: Win32: Status bar position bug: msg#00098emulators.bochs.devel
Hi, > Host OS is Win2000 Server. Guest OS is Win98 PE. > I attached the picture of Bochs Windows with broken status bar position. Please try this modified resize code. I hope this patch fixes the problem. diff -urN /home/volker/bochs/gui/win32.cc ./gui/win32.cc --- /home/volker/bochs/gui/win32.cc 2003-10-25 09:29:07.000000000 +0200 +++ ./gui/win32.cc 2003-10-25 13:44:48.000000000 +0200 @@ -1276,6 +1276,8 @@ void bx_win32_gui_c::dimension_update(unsigned x, unsigned y, unsigned fheight, unsigned fwidth, unsigned bpp) { + RECT R; + if (fheight > 0) { text_cols = x / fwidth; text_rows = y / fheight; @@ -1341,11 +1343,12 @@ SetWindowPos(stInfo.mainWnd, HWND_TOP, 0, 0, stretched_x + x_edge * 2, stretched_y + bx_headerbar_y + bx_statusbar_y + y_edge * 2 + y_caption, SWP_NOMOVE | SWP_NOZORDER); - MoveWindow(hwndTB, 0, 0, stretched_x, bx_headerbar_y, TRUE); - MoveWindow(hwndSB, 0, stretched_y-bx_statusbar_y, stretched_x, + SendMessage(hwndTB, TB_AUTOSIZE, 0, 0); + GetClientRect(stInfo.mainWnd, &R); + MoveWindow(hwndSB, 0, R.bottom-bx_statusbar_y, stretched_x, bx_statusbar_y, TRUE); MoveWindow(stInfo.simWnd, 0, bx_headerbar_y, stretched_x, stretched_y, TRUE); - + BX_INFO (("dimension update x=%d y=%d fontheight=%d fontwidth=%d bpp=%d", x, y, fheight, fwidth, bpp)); } -- Bye Volker ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Win32: Status bar position bug: 00098, Volker Ruppert |
|---|---|
| Next by Date: | RE: Win32: Status bar position bug: 00098, Stanislav Shwartsman |
| Previous by Thread: | Re:Win32: Status bar position bugi: 00098, Ivan Leo Murray-Smith |
| Next by Thread: | RE: Win32: Status bar position bug: 00098, Stanislav Shwartsman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |