nParts = -1;
SendMessageW(hStatusBar, SB_SETPARTS, 1, (long)&nParts);
bInMenuLoop = TRUE;
- SendMessageW(hStatusBar, SB_SETTEXTW, (WPARAM)0, (LPARAM)&empty);
+ SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)&empty);
}
static void OnExitMenuLoop(HWND hWnd)
0/*hbrBackground*/,
0/*lpszMenuName*/,
szFrameClass,
- (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
+ LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED)
};
ATOM hFrameWndClass = RegisterClassEx(&wcFrame); /* register frame window class */
0/*hbrBackground*/,
0/*lpszMenuName*/,
szChildClass,
- (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
+ LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED)
};
exit(1);
}
puts(lpMsgBuf);
- LocalFree((HLOCAL)lpMsgBuf);
+ LocalFree(lpMsgBuf);
exit(1);
}
tvins.u.item.iSelectedImage = Image_Open;
tvins.u.item.cChildren = dwChildren;
tvins.u.item.lParam = (LPARAM)hKey;
- tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_SORT);
+ tvins.hInsertAfter = hKey ? TVI_LAST : TVI_SORT;
tvins.hParent = hParent;
return TreeView_InsertItemW(hwndTV, &tvins);
tvins.u.item.cChildren = 5;
/* Save the heading level in the item's application-defined data area. */
tvins.u.item.lParam = 0;
- tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
+ tvins.hInsertAfter = TVI_FIRST;
tvins.hParent = TVI_ROOT;
/* Add the item to the tree view control. */
if (!(hRoot = TreeView_InsertItemW(hwndTV, &tvins))) return FALSE;