Hi there,
Now I have a parent dialog which has a tab control in it and I have a child dialog with a combobox in it. And the child is linked to the parent and the child doesn't have OnInitDlg() function. So if I want to change the font size of the combobox in the child dialog, I would need to change it in the parent dialog (if I'm correct to say that). Now in the parent dialog, inside the OnInitDlg() function, I wrote this:

CClientDC dc ( this ) ;
LOGFONT lf ;
memset ( &lf, 0, sizeof ( LOGFONT ) ) ;
lf.lfHeight = 100 ;
lf.lfWeight = FW_BOLD ;
strcpy ( lf.lfFaceName, "Verdana" ) ;

VERIFY ( m_font.CreatePointFontIndirect ( &lf, &dc ) );

( ( CStatic* ) GetDlgItem ( IDC_COMBO_TIME ) ) -> SetFont ( &m_font ) ;

And when I run it, it gave me error message. Is there any way I could do to change the font of the combobox in the child dialog??

Any help will be appreciated.

Thanks.
Cheers

-one-