I am trying to use PSH_USECALLBACK to assert a specific font for a property sheet.
Tracing through the CPropertySheet::Create() method shows that my setting of m_psh.pfnCallback is overridden (see code below).
I don't see a workaround. Is there?
Thanks,
Rich
// finish building PROPSHEETHEADER structure
BuildPropPageArray();
m_bModeless =
TRUE;
m_psh.dwFlags
|= (PSH_MODELESS|PSH_USECALLBACK);
m_psh.pfnCallback
= AfxPropSheetCallback;
m_psh.hwndParent
= pParentWnd->GetSafeHwnd();
// hook the window creation process
AfxHookWindowCreate(this);
C++ developer