How to set the background image of RichEdit control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.