HWND CreateWindowExPatched( DWORD exStyle, LPCTSTR className, LPCTSTR title, DWORD style, int x, int y, int width, int height, HWND parent, HMENU menu, HINSTANCE instance, LPVOID param )
{
HWND hWnd = NULL;
ScrollWindow( parent, -x, -y, NULL, NULL );
hWnd = CreateWindowEx( exStyle, className, title, style, 0, 0, width, height, parent, menu, instance, param );
ScrollWindow( parent, x, y, NULL, NULL );
return hWnd;
}
HWND CreateWindowPatched( LPCTSTR className, LPCTSTR title, DWORD style, int x, int y, int width, int height, HWND parent, HMENU menu, HINSTANCE instance, LPVOID param )
{
return CreateWindowExPatched( 0, className, title, style, x, y, width, height, parent, menu, instance, param );
}