cast
This commit is contained in:
@@ -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));
|
bOKEnabled = bOKEnabled && GetDlgItemText(hWndDlg, IDD_WORKPATH, (LPWSTR)&szBuffer, ARRAYSIZE(szBuffer));
|
||||||
|
|
||||||
// Check that we have selected an MDI child window as well
|
// 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;
|
bOKEnabled = FALSE;
|
||||||
|
|
||||||
// Enable or disable the relevant controls based on the information
|
// Enable or disable the relevant controls based on the information
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ PITEM CreateItem(_In_ HWND hWndGroup, _In_ PITEM pi)
|
|||||||
lvi.pszText = pItem->szName;
|
lvi.pszText = pItem->szName;
|
||||||
lvi.cchTextMax = ARRAYSIZE(pItem->szName);
|
lvi.cchTextMax = ARRAYSIZE(pItem->szName);
|
||||||
// lvi.iImage = I_IMAGECALLBACK;
|
// lvi.iImage = I_IMAGECALLBACK;
|
||||||
lvi.lParam = pItem;
|
lvi.lParam = (LPARAM)pItem;
|
||||||
|
|
||||||
// copy that bad boy into the listview
|
// copy that bad boy into the listview
|
||||||
ListView_InsertItem(FindWindowEx(hWndGroup, NULL, TEXT("ListView"), NULL), &lvi);
|
ListView_InsertItem(FindWindowEx(hWndGroup, NULL, TEXT("ListView"), NULL), &lvi);
|
||||||
|
|||||||
Reference in New Issue
Block a user