Prepared by: zheng yu
Rely onKenwhale instructions,I have tested it.RichEdit control(In the VC ++ 6.0 + SP6 environment ).
Follow these steps:
1: InheritanceCricheditctrl: onerasebkgnd (CDC * PDC)In the message eventRichEditControl to draw the background image:
M_bmp background.drawdib (PDC, 0, 0, RC. Width (), RC. Height ());
You can also useSubclass RichEdit windowAnd then process it in the callback function.Wm_erasebkgndMessage.
2: SetRichEditTransparent properties of controls;
3 : Follow Kenwhale As mentioned, Hook Now Gdi32.dll In Exttextout Function to remove the text-output options of RichEdit from eto_opaque Style .
To sum up, you can achieve the background image effect of the RichEdit control.
?
Accordingly, I also implemented the RichEdit control background to draw the AVI animation effect.
Save the photo. PairThank you!
Prepared by: zheng yu
Trackback: http://tb.blog.csdn.net/TrackBack.aspx? Postid = 46273