Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Refresh Tab Controls Pin
mark novak18-Aug-05 0:33
mark novak18-Aug-05 0:33 
Generalvc and vc.net Pin
shaz jazz17-Aug-05 20:03
shaz jazz17-Aug-05 20:03 
GeneralRe: vc and vc.net Pin
Geert van Horrik17-Aug-05 20:45
Geert van Horrik17-Aug-05 20:45 
GeneralRe: vc and vc.net Pin
shaz jazz17-Aug-05 21:02
shaz jazz17-Aug-05 21:02 
GeneralRe: vc and vc.net Pin
Geert van Horrik17-Aug-05 22:28
Geert van Horrik17-Aug-05 22:28 
GeneralI need use a file DLL Pin
Thangnc17-Aug-05 19:10
Thangnc17-Aug-05 19:10 
GeneralRe: I need use a file DLL Pin
Cedric Moonen17-Aug-05 20:55
Cedric Moonen17-Aug-05 20:55 
GeneralNeed Redraw in PNG based image Dlg Pin
MacGadger17-Aug-05 18:10
MacGadger17-Aug-05 18:10 
Cry | :(( Hi, can anyone plz help me ...
im creating an application with easy PNG skinny feature, im using CxImage lib. to load and draw Transparent Images , but i have a big problem , now i want to tell u step by step im creatin my apllication and problem.

1. I am creating a Dialog based Application . and then add this code in
OnInitDialog func, :
{
/* This will Load PNG Image into the CxImage Lib Object */
image.Load( "C:\xxx.png",CXIMAGE_FORMAT_PNG);
}

2. Then i remove all code from WM_PAINT func. and add my code in there
like this :

CSkinDlg::OnPaint()
{
CPaintDC dc(this);
CRect rc;
GetClientRect(&rc);
image.Draw(&dc, rc, 0 , true); /* image is the Object of CxImage Lib.
and draw will draw the PNG image on the Application. */
CDialog::OnPaint()
}

3. and then i use WM_ERASEBKGND func. to Draw the Backgound
Transparent like:

CSkinDlg::OnEraseBkgnd(CDC *pDC)
{
return TRUE;
}

4. with this all things every thing is workin fine , but the problem is when
i move the dialog , it draws Trails of the Drawed Image, or if i want to
draw an another image on the current image then it also draws the Trails
the main background image.

I also used the way of TRANSPARENT dialog. by using the
ModifyStyleEx( 0 , WS_EX_TRANSPARENT); , But the problem is that
when i Refresh my desktop , the dialogs goes invisible, and then an i
have to click on the dialog again to show.

Please tell me how to redraw intire dialog with an timer based func. and
how to draw an another image on bkground image without leaving trails.
i also used RedrawWindow() and Invalidate() to redraw but its not workin.

NOTE: please dont use any of floags like WS_EX_TRANSPARENT or
WS_EX_LAYERRED. this is not workin fine.

Now itz up to my friends .
Plz help me my friends its my dream project .
thnx.
Questionenumerating resources? Pin
Peter Weyzen17-Aug-05 17:10
Peter Weyzen17-Aug-05 17:10 
AnswerRe: enumerating resources? Pin
ThatsAlok17-Aug-05 19:21
ThatsAlok17-Aug-05 19:21 
Generalautocomplete control in file opne dialog Pin
followait17-Aug-05 16:45
followait17-Aug-05 16:45 
GeneralRe: autocomplete control in file opne dialog Pin
Christian Graus17-Aug-05 17:06
protectorChristian Graus17-Aug-05 17:06 
GeneralRe: autocomplete control in file opne dialog Pin
Jose Lamas Rios17-Aug-05 18:38
Jose Lamas Rios17-Aug-05 18:38 
GeneralRe: autocomplete control in file opne dialog Pin
ThatsAlok17-Aug-05 23:10
ThatsAlok17-Aug-05 23:10 
GeneralRe: autocomplete control in file opne dialog Pin
Jose Lamas Rios18-Aug-05 2:49
Jose Lamas Rios18-Aug-05 2:49 
GeneralRe: autocomplete control in file opne dialog Pin
ThatsAlok19-Aug-05 19:21
ThatsAlok19-Aug-05 19:21 
GeneralCoCreateGuid Pin
Al_Pennyworth17-Aug-05 12:22
Al_Pennyworth17-Aug-05 12:22 
GeneralRe: CoCreateGuid Pin
Jack Puppy17-Aug-05 12:48
Jack Puppy17-Aug-05 12:48 
GeneralRe: CoCreateGuid Pin
TheGreatAndPowerfulOz17-Aug-05 13:52
TheGreatAndPowerfulOz17-Aug-05 13:52 
GeneralSplash Screen Window problem Pin
gr8coaster32917-Aug-05 12:06
gr8coaster32917-Aug-05 12:06 
GeneralRe: Splash Screen Window problem Pin
Christian Graus17-Aug-05 12:18
protectorChristian Graus17-Aug-05 12:18 
GeneralRe: Splash Screen Window problem Pin
gr8coaster32917-Aug-05 12:58
gr8coaster32917-Aug-05 12:58 
GeneralRe: Splash Screen Window problem Pin
Christian Graus17-Aug-05 13:14
protectorChristian Graus17-Aug-05 13:14 
GeneralRe: Splash Screen Window problem Pin
gr8coaster32917-Aug-05 13:47
gr8coaster32917-Aug-05 13:47 
GeneralRe: Splash Screen Window problem Pin
Christian Graus17-Aug-05 13:53
protectorChristian Graus17-Aug-05 13:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.