This commit is contained in:
freedom7341
2023-10-10 16:32:25 -06:00
parent 6f312892e8
commit 14c5e5560b
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ BOOL CALLBACK NewItemDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM l
bOKEnabled = bOKEnabled && GetDlgItemText(hWndDlg, IDD_WORKPATH, (LPWSTR)&szBuffer, ARRAYSIZE(szBuffer));
// Check that we have selected an MDI child window as well
if (SendMessage(hWndMDIClient, WM_MDIGETACTIVE, 0, FALSE) == NULL)
if ((HWND)SendMessage(hWndMDIClient, WM_MDIGETACTIVE, 0, FALSE) == (HWND)NULL)
bOKEnabled = FALSE;
// Enable or disable the relevant controls based on the information

View File

@@ -222,7 +222,7 @@ PITEM CreateItem(_In_ HWND hWndGroup, _In_ PITEM pi)
lvi.pszText = pItem->szName;
lvi.cchTextMax = ARRAYSIZE(pItem->szName);
// lvi.iImage = I_IMAGECALLBACK;
lvi.lParam = pItem;
lvi.lParam = (LPARAM)pItem;
// copy that bad boy into the listview
ListView_InsertItem(FindWindowEx(hWndGroup, NULL, TEXT("ListView"), NULL), &lvi);