40 lines
956 B
C++
40 lines
956 B
C++
// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!!
|
|
|
|
#include <r3/binders/auto.h>
|
|
#include <gh_global.h>
|
|
|
|
extern "C" {
|
|
HWND getHWND(void); // 00401300 // getHWND // stdcall // Params: | Types: | Return: typedef HWND HWND__ *
|
|
|
|
// 00401320 // r3_windowLockCursor(cdecl)
|
|
// Parameters: | Types: | Return: undefined
|
|
|
|
void unknown r3_windowLockCursor(void)
|
|
|
|
{
|
|
HWND pHVar1;
|
|
tagRECT *ptVar2;
|
|
RECT RStack_30;
|
|
tagRECT local_20;
|
|
tagRECT tStack_10;
|
|
|
|
if (g_initVar0 != '\0') {
|
|
ptVar2 = &local_20;
|
|
pHVar1 = getHWND();
|
|
GetWindowRect(pHVar1,ptVar2);
|
|
ptVar2 = &tStack_10;
|
|
pHVar1 = getHWND();
|
|
GetClientRect(pHVar1,ptVar2);
|
|
RStack_30.left = local_20.left + 5;
|
|
RStack_30.top = local_20.bottom - tStack_10.bottom;
|
|
RStack_30.right = tStack_10.right + -5 + RStack_30.left;
|
|
RStack_30.bottom = RStack_30.top + -5 + tStack_10.bottom;
|
|
ClipCursor(&RStack_30);
|
|
ShowCursor(0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
}
|
|
|