Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends
I am Creating an application using vc6 and In that m displaying a bmp with the help of BitBlt andCClientDC.Now,On some button click I want to Hide it.And m displaying this bmp on OnPaint().

Is there any way to deselect the bmp to hide it?
Regards
Yogesh
Posted

1 solution

Try calling Invalidate on button click, it will force OnPaint. Skip BitBlt (use a flag or something to indicate when it should be hidden)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900