public Win32.DRAWITEMSTRUCT Convert() { return(new Win32.DRAWITEMSTRUCT() { CtlType = CtlType, CtlID = CtlID, itemID = itemID, itemAction = itemAction, itemState = itemState, hwndItem = HWND.Map.To32(hwndItem), hDC = HDC.Map.To32(hDC), rcItem = rcItem.Convert(), itemData = (IntPtr)itemData, }); }
public Win16.DRAWITEMSTRUCT Convert() { return(new Win16.DRAWITEMSTRUCT() { CtlType = (ushort)CtlType, CtlID = (ushort)CtlID, itemID = (ushort)itemID, itemAction = (ushort)itemAction, itemState = (ushort)itemState, hwndItem = HWND.Map.To16(hwndItem), hDC = HDC.Map.To16(hDC), rcItem = rcItem.Convert(), itemData = (uint)itemData.ToInt32(), }); }