Forum
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.
Subject |
Author |
Date |
|
howard liu
|
Jul 18, 2008 - 8:55 AM
|
Hi, Is there an equivalent control in Prof-UI and its related resource for "picture control" in mfc Thanks, Howard
|
|
howard liu
|
Jul 29, 2008 - 5:01 AM
|
Hi,
I have a picture control inside a dialog and picture control is customized to display some text.problem is when i skin dialog the picture control also gets completely coloured and i am not able to see the text inside it.So plz tell me how to overcome it.
Thanks,
|
|
Technical Support
|
Jul 31, 2008 - 4:05 AM
|
The first thing you should pay attention to is group boxes. If you have the group boxes on you dialog check the tab order. The group boxes should have the greater order numbers than the controls inside it. You can learn more about this issue from this article.
Then check how your custom text is painted over picture control. The dialog overwrites painting the dialog background so if you have own painting code in the dialog’s OnPaint method you should change it. Just note if you are using the OnPaint() message handler in your dialog the CClientDC class should be used instead of CPaintDC , because the themed background is painted before the OnPaint() handler is called: void CMainDlg::OnPaint()
{
CClientDC dc(this);
dc.LineTo( 100, 100 );
} If you still have the problems you can send us your dialog class code or entire project so we can find out what’s wrong ourselves.
|
|
Technical Support
|
Jul 18, 2008 - 10:23 AM
|
You should use CExtLabel class. It supports painting of CExtBitmap images including 32-bit format with alpha channel on any Windows OS. It can optionally tile, stretch or center image.
|
|