"Jacek Caban" jack@itma.pwr.wroc.pl wrote:
case WM_COMMAND:
return CFn_WMCommand(hDlg, wParam, lParam, (LPCHOOSEFONTW)lpcf32w);
return CFn_WMCommand(hDlg, wParam, lParam, (LPCHOOSEFONTA)lpcf32w);
No, that's not enough. As Vincent pointed out CFn_WMCommand accesses structure dependent fields and you need to convert the structure in order to make it work.