mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-06-09 02:35:54 +02:00
Use SDL for Win32API.SetWindowText
This commit is contained in:
parent
00614270aa
commit
3b36b56c4b
3 changed files with 11 additions and 0 deletions
|
@ -48,6 +48,7 @@ MiniFFI_GetFunctionHandle(void *lib, const char *func)
|
||||||
CAPTURE(GetCursorPos);
|
CAPTURE(GetCursorPos);
|
||||||
CAPTURE(ScreenToClient);
|
CAPTURE(ScreenToClient);
|
||||||
CAPTURE(SetWindowPos);
|
CAPTURE(SetWindowPos);
|
||||||
|
CAPTURE(SetWindowTextA);
|
||||||
CAPTURE(GetWindowRect);
|
CAPTURE(GetWindowRect);
|
||||||
CAPTURE(RegisterHotKey);
|
CAPTURE(RegisterHotKey);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -115,6 +115,13 @@ MKXP_SetWindowPos(HWND hWnd,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOL __stdcall
|
||||||
|
MKXP_SetWindowTextA(HWND hWnd, LPCSTR lpString)
|
||||||
|
{
|
||||||
|
SDL_SetWindowTitle(shState->sdlWindow(), (const char*)lpString);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Games that use this to resize the window won't center
|
// Games that use this to resize the window won't center
|
||||||
// themselves, but it's better than having the window sent
|
// themselves, but it's better than having the window sent
|
||||||
|
|
|
@ -63,6 +63,9 @@ MKXP_SetWindowPos(HWND hWnd,
|
||||||
int cy,
|
int cy,
|
||||||
UINT uFlags);
|
UINT uFlags);
|
||||||
|
|
||||||
|
BOOL __stdcall
|
||||||
|
MKXP_SetWindowTextA(HWND hWnd, LPCSTR lpString);
|
||||||
|
|
||||||
BOOL __stdcall
|
BOOL __stdcall
|
||||||
MKXP_GetWindowRect(HWND hWnd, LPRECT lpRect);
|
MKXP_GetWindowRect(HWND hWnd, LPRECT lpRect);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue