I have worked out from FONT.DLG what resource control I want to disable (CFontDialog). So I did this:
CFontDialog dlgFont( m_plfCurrentFont ); CWnd *pControl = NULL;
pControl = dlgFont.GetDlgItem( chx1 ); --> It crashes here. The control window handle is not valid. I presume because the dialogue has not yet been displayed.
It's been a long time since I've done it, but IIRC with a dialog you can call Create( ) and not have it display, then mess around with all the controls and when you're ready you do a show window.
/dev
_______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
