This = (PropertyPage *) (((LPPROPSHEETPAGEW) lParam)->lParam);
SetWindowLongPtr (hwnd, DWLP_USER, (LONG_PTR) This);
- SetWindowLongPtr (hwnd, DWLP_DLGPROC, (LONG_PTR) DialogProcReflector);
+ SetWindowLongPtrW (hwnd, DWLP_DLGPROC, (LONG_PTR) DialogProcReflector);
This->SetHWND (hwnd);
return This->DialogProc (message, wParam, lParam);
Hook into the window proc.
We need to catch some messages for resizing.
*/
- PropSheetData::Instance().oldWndProc =
- (WNDPROC)GetWindowLongPtr (hwndDlg, GWLP_WNDPROC);
- SetWindowLongPtr (hwndDlg, GWLP_WNDPROC,
- (LONG_PTR)&PropSheetWndProc);
+ PropSheetData::Instance().oldWndProc = (WNDPROC)GetWindowLongPtrW (hwndDlg, GWLP_WNDPROC);
+ SetWindowLongPtrW (hwndDlg, GWLP_WNDPROC, (LONG_PTR)&PropSheetWndProc);
+ /*
+ Store the PropSheet HWND in the Chooser, for use in resizing
+
+ (XXX: this is just silly: The PropSheet HWND is the parent of the
+ PropPage HWND, so chooser has access to that HWND as GetParent()
+ anyhow... )
+ */
ChooserPage::SetHwndDialog (hwndDlg);
}
return TRUE;