Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Text inside CExtGroupBox Collapse All
Subject Author Date
Pravin Kumar Apr 30, 2007 - 7:25 AM

Dear Sir,

I have dialog derived from CExtResizableDialog
In that dialog I have one GroupBox (CExtGroupBox) & some control inside groupbox
I use code
CDC* pDC=GetDC();
CRect oRect;
     CString sz;
    sz.Format("%c",42); //astric sign

But it will not print that sign or any text inside groupBox on dialog.
But when I print this sign or text outside of group box it will print that sign or text on dialog.

So where i am wrong ?

Please give me a solution .


Pravin Kumar Apr 30, 2007 - 11:29 PM

Thanks for solving my problem .

Technical Support Apr 30, 2007 - 2:58 PM

Please ensure you are painting on the surface of the group box control and not on the dialog’s surface. I.e. you should invoke pGroupBoxWnd->GetDC() instead of pDialog->GetDC().