Skip to content

Commit

Permalink
Replaced deprecated function CreateStatusWindow() in win32.cc.
Browse files Browse the repository at this point in the history
Cleaned up definition of _WIN32_IE.
FIXME: statusbar not correctly shown when running bochs.exe with Wine.
  • Loading branch information
vruppert committed Jun 30, 2024
1 parent 69215cb commit 0f6b74e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions bochs/gui/win32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,9 @@ DWORD WINAPI UIThread(LPVOID)
SendMessage(hwndTB, TB_BUTTONSTRUCTSIZE, (WPARAM) sizeof(TBBUTTON), 0);
SendMessage(hwndTB, TB_SETBITMAPSIZE, 0, (LPARAM)MAKELONG(32, 32));

hwndSB = CreateStatusWindow(WS_CHILD | WS_VISIBLE, "",
stInfo.mainWnd, 0x7712);
hwndSB = CreateWindowEx(0, STATUSCLASSNAME, (PCTSTR)NULL,
WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, stInfo.mainWnd,
(HMENU) 0x7712, stInfo.hInstance, NULL);
if (hwndSB) {
unsigned elements;
SB_Edges[0] = SIZE_OF_SB_MOUSE_MESSAGE + SIZE_OF_SB_ELEMENT;
Expand Down
7 changes: 3 additions & 4 deletions bochs/gui/win32dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
#include "config.h"

// Compilation for WIN64 native require minimum 0x0500
#ifndef _WIN32_IE
#define _WIN32_IE 0x0500 /* Force a minimum "OS level" for commctrl.h */
#endif
#if _WIN32_IE < 0x0500
#undef _WIN32_IE
#define _WIN32_IE 0x0500
#endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0500 /* Force a minimum "OS level" for commctrl.h */
#endif

extern "C" {
Expand Down

0 comments on commit 0f6b74e

Please sign in to comment.