| |

VerySource

 Forgot password?
 Register
Search
View: 19|Reply: 16

Master: Multi-line strings, how to achieve in DC like Word can let different characters display with different colors /

[Copy link]

2

Threads

10

Posts

11

Credits

Newbie

Rank: 1

Credits
11

 China

Post time: 2020-1-22 21:40:01
| Show all posts |Read mode
Textout can only display one line, drawText multi-line characters, and only one color / font?
Reply

Use magic Report

0

Threads

4

Posts

5

Credits

Newbie

Rank: 1

Credits
5

 China

Post time: 2020-2-6 15:15:01
| Show all posts
Can't draw more times?
Reply

Use magic Report

0

Threads

20

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

Post time: 2020-2-6 16:45:01
| Show all posts
Consider inserting some control characters in the string to achieve your desired effect.
Reply

Use magic Report

2

Threads

10

Posts

11

Credits

Newbie

Rank: 1

Credits
11

 China

 Author| Post time: 2020-2-7 15:15:01
| Show all posts
Draw a few more times, and all the characters become new colors?
Reply

Use magic Report

0

Threads

22

Posts

16

Credits

Newbie

Rank: 1

Credits
16

 China

Post time: 2020-2-7 21:30:01
| Show all posts
CRichEditCtrl is easy to implement
Reply

Use magic Report

0

Threads

56

Posts

40

Credits

Newbie

Rank: 1

Credits
40

 China

Post time: 2020-2-8 15:00:01
| Show all posts
These texts have a special format, such as html. After parsing the format, the text and formatting are drawn according to the parameters of the label.
Reply

Use magic Report

2

Threads

10

Posts

11

Credits

Newbie

Rank: 1

Credits
11

 China

 Author| Post time: 2020-3-1 15:00:01
| Show all posts
If there is no RichEditCtrl, is there any good way?

to2511718: What you said is the way to display in IE server? What good way do I want to display this effect in the MFCGridCtrl Cell?
Reply

Use magic Report

0

Threads

8

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 China

Post time: 2020-5-25 20:30:02
| Show all posts
I'm afraid you have to customize the file format, parse and display
Reply

Use magic Report

2

Threads

10

Posts

11

Credits

Newbie

Rank: 1

Credits
11

 China

 Author| Post time: 2020-5-28 07:45:01
| Show all posts
Upstairs, how to define carriage return / line feed? (Want to achieve word wrapping)
Reply

Use magic Report

0

Threads

18

Posts

19

Credits

Newbie

Rank: 1

Credits
19

 China

Post time: 2020-6-2 23:45:01
| Show all posts
Use CFont and CLogFont one by one
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list