mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Match SubclassGameWindow()
This commit is contained in:
parent
64ad774209
commit
ed1646d102
@ -26,22 +26,24 @@ BOOL SubclassGameWindow()
|
|||||||
{
|
{
|
||||||
HWND hwndGameWnd = pGame->GetMainWindowHwnd();
|
HWND hwndGameWnd = pGame->GetMainWindowHwnd();
|
||||||
|
|
||||||
if(!hwndGameWnd) return FALSE;
|
if(hwndGameWnd) {
|
||||||
|
|
||||||
DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE);
|
DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE);
|
||||||
SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS);
|
SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS);
|
||||||
|
|
||||||
InstallNewWindowProcedure();
|
InstallNewWindowProcedure();
|
||||||
|
|
||||||
SetWindowText(hwndGameWnd,"GTA:SA:MP");
|
SetWindowText(hwndGameWnd,"GTA:SA:MP");
|
||||||
|
|
||||||
if(IsWindowUnicode(hwndGameWnd)) {
|
if(IsWindowUnicode(hwndGameWnd)) {
|
||||||
OutputDebugString("GTA is unicode");
|
OutputDebugString("GTA is unicode");
|
||||||
} else {
|
} else {
|
||||||
OutputDebugString("GTA is not unicode");
|
OutputDebugString("GTA is not unicode");
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
return FALSE;
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user