|
|
|
|
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 |
|
Massimo Germi
|
Jul 25, 2007 - 2:52 AM
|
I need to draw an animation file (.avi) in a prof-uis themed dialog apps. How can I draw a transparent background of .avi to reproduce prof-uis theme ? Alternatively, is there a control, in prof-uis classes, I can use?
Tx a lot
|
|
Technical Support
|
Jul 25, 2007 - 12:48 PM
|
The background of all controls and dialogs is based on bitmaps or gradients, which depend on the current paint manager (theme).
You can paint a valid background compatible with the dialog background and current theme by using the following code: CExtMemoryDC dc(
&dcPaint,
&rcClient
);
// draw themed background
bool bTransparent = false;
if( g_PaintManager->GetCb2DbTransparentMode( this ) )
{
CExtPaintManager::stat_ExcludeChildAreas(
dc,
GetSafeHwnd(),
CExtPaintManager::stat_DefExcludeChildAreaCallback
);
if( g_PaintManager->PaintDockerBkgnd( true, dc, this ) )
bTransparent = true;
}
if( ! bTransparent )
dc.FillSolidRect(
&rcClient,
g_PaintManager->GetColor( CExtPaintManager::CLR_3DFACE_OUT, this )
);
//////////////////////////////////////////////////////////////////////
// PLACE CONTROL PAINTING CODE HERE
////////////////////////////////////////////////////////////////////// Please note Prof-UIS comes with the AviFrames sample where you can see how to read and display avi files.
|
|