mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
[REACTOS] Fix a number of Get/SetWindowsLong*Ptr* issues and use GWLP_* instead of GWL_* where appropriate.
This commit is contained in:
parent
173971d947
commit
d281d14fd1
25 changed files with 118 additions and 118 deletions
|
@ -176,7 +176,7 @@ static void SetupControls(HWND hWnd)
|
|||
SIZE sizeStarfield;
|
||||
BITMAP bm;
|
||||
|
||||
hInstance = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
|
||||
hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
|
||||
|
||||
SendDlgItemMessage(hWnd, IDC_SLIDER_NUM_OF_STARS, TBM_SETRANGE, FALSE, MAKELPARAM(MIN_STARS, MAX_STARS));
|
||||
|
||||
|
@ -273,7 +273,7 @@ static BOOL OnCommandAbout(HWND hWnd)
|
|||
TCHAR szAuthor[256];
|
||||
TCHAR szLicense[1024];
|
||||
|
||||
hInstance = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
|
||||
hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
|
||||
|
||||
hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_STARFIELD));
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ static HBITMAP CreateStarBitmap(HWND hWnd, HDC hDC)
|
|||
HINSTANCE hInstance;
|
||||
|
||||
// Get instance for loading the texture
|
||||
hInstance = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
|
||||
hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
|
||||
|
||||
// Load the texture
|
||||
hFileBmp = (HBITMAP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue