mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +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
|
@ -187,7 +187,7 @@ void OnInit(
|
|||
{
|
||||
// Store parameters
|
||||
|
||||
SetWindowLong(hDlg, GWL_USERDATA, (ULONG)pParam);
|
||||
SetWindowLongPtr(hDlg, GWLP_USERDATA, (ULONG_PTR)pParam);
|
||||
|
||||
// clear the target existence flag
|
||||
|
||||
|
@ -285,7 +285,7 @@ void OnTarget(
|
|||
//
|
||||
// get the current image info
|
||||
//
|
||||
param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA);
|
||||
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||
|
||||
if (_stricmp(param->ImageName, buf) == 0) {
|
||||
|
||||
|
@ -461,7 +461,7 @@ DWORD OnOK(
|
|||
BOOL truncate;
|
||||
DWORD ret;
|
||||
|
||||
param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA);
|
||||
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||
|
||||
if (!param) {
|
||||
return ERROR_INVALID_FUNCTION;
|
||||
|
|
|
@ -41,8 +41,8 @@ static LRESULT CALLBACK ToolTipProc(
|
|||
switch (uMsg) {
|
||||
case WM_CREATE:
|
||||
// Store Font handle
|
||||
SetWindowLong(hWnd, GWL_USERDATA,
|
||||
(LONG)((LPCREATESTRUCT)lParam)->lpCreateParams);
|
||||
SetWindowLongPtr(hWnd, GWLP_USERDATA,
|
||||
(LONG_PTR)((LPCREATESTRUCT)lParam)->lpCreateParams);
|
||||
return 0;
|
||||
|
||||
case WM_PAINT:
|
||||
|
@ -56,7 +56,7 @@ static LRESULT CALLBACK ToolTipProc(
|
|||
RECT rc;
|
||||
|
||||
|
||||
SelectObject(hDC, (HFONT)GetWindowLong(hWnd, GWL_USERDATA));
|
||||
SelectObject(hDC, (HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA));
|
||||
|
||||
SetTextColor(hDC, GetSysColor(COLOR_INFOTEXT));
|
||||
SetBkMode(hDC, TRANSPARENT);
|
||||
|
@ -121,7 +121,7 @@ static LRESULT CALLBACK ToolTipProc(
|
|||
|
||||
case WM_DESTROY:
|
||||
// delete font
|
||||
DeleteObject((HFONT)GetWindowLong(hWnd, GWL_USERDATA));
|
||||
DeleteObject((HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue