);
assert(hListBox != NULL);
- SetWindowLong(
- hListBox, GWL_ID, reinterpret_cast<LONG>(hListBox)
+ SetWindowLongPtr(
+ hListBox, GWL_ID, reinterpret_cast<LONG_PTR>(hListBox)
);
SNDMSG(hListBox, LB_ADDSTRING, 0,
reinterpret_cast<LPMEASUREITEMSTRUCT>(lParam);
assert(lpmis != NULL);
- if (lpmis->CtlID == reinterpret_cast<UINT>(hListBox))
+ if (lpmis->CtlID == reinterpret_cast<UINT_PTR>(hListBox))
{
lpmis->itemHeight = 150;
return TRUE;
reinterpret_cast<LPDRAWITEMSTRUCT>(lParam);
assert(lpdis != NULL);
- if (lpdis->CtlID == reinterpret_cast<UINT>(hListBox))
+ if (lpdis->CtlID == reinterpret_cast<UINT_PTR>(hListBox))
{
SaveDC(lpdis->hDC);
#if 0