Replaced deprecated function CreateStatusWindow() in win32.cc.

Cleaned up definition of _WIN32_IE.
FIXME: statusbar not correctly shown when running bochs.exe with Wine.
This commit is contained in:
Volker Ruppert 2024-06-30 19:02:38 +02:00
parent 69215cb1e0
commit 0f6b74e940
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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" {