Fixed handling of -1 itemid in WM_DRAWITEM.
This commit is contained in:
parent
3953614bbd
commit
9dea5b3ac8
|
@ -851,7 +851,7 @@ static LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
|
|||
#endif
|
||||
LPDRAWITEMSTRUCT lpdi = (LPDRAWITEMSTRUCT)lParam;
|
||||
|
||||
if (lpdi->itemID == 0xFFFF) /* got no items */
|
||||
if (lpdi->itemID == (UINT)-1) /* got no items */
|
||||
DrawFocusRect(lpdi->hDC, &lpdi->rcItem);
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue