mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[PRIMITIVES]
- use pointer sized integers when converting handles svn path=/trunk/; revision=47832
This commit is contained in:
parent
0959625c7e
commit
bbbbb74fd5
1 changed files with 4 additions and 4 deletions
|
@ -186,8 +186,8 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
|
||||||
);
|
);
|
||||||
assert(hListBox != NULL);
|
assert(hListBox != NULL);
|
||||||
|
|
||||||
SetWindowLong(
|
SetWindowLongPtr(
|
||||||
hListBox, GWL_ID, reinterpret_cast<LONG>(hListBox)
|
hListBox, GWL_ID, reinterpret_cast<LONG_PTR>(hListBox)
|
||||||
);
|
);
|
||||||
|
|
||||||
SNDMSG(hListBox, LB_ADDSTRING, 0,
|
SNDMSG(hListBox, LB_ADDSTRING, 0,
|
||||||
|
@ -238,7 +238,7 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
|
||||||
reinterpret_cast<LPMEASUREITEMSTRUCT>(lParam);
|
reinterpret_cast<LPMEASUREITEMSTRUCT>(lParam);
|
||||||
assert(lpmis != NULL);
|
assert(lpmis != NULL);
|
||||||
|
|
||||||
if (lpmis->CtlID == reinterpret_cast<UINT>(hListBox))
|
if (lpmis->CtlID == reinterpret_cast<UINT_PTR>(hListBox))
|
||||||
{
|
{
|
||||||
lpmis->itemHeight = 150;
|
lpmis->itemHeight = 150;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -251,7 +251,7 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
|
||||||
reinterpret_cast<LPDRAWITEMSTRUCT>(lParam);
|
reinterpret_cast<LPDRAWITEMSTRUCT>(lParam);
|
||||||
assert(lpdis != NULL);
|
assert(lpdis != NULL);
|
||||||
|
|
||||||
if (lpdis->CtlID == reinterpret_cast<UINT>(hListBox))
|
if (lpdis->CtlID == reinterpret_cast<UINT_PTR>(hListBox))
|
||||||
{
|
{
|
||||||
SaveDC(lpdis->hDC);
|
SaveDC(lpdis->hDC);
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in a new issue