Function prototype
Int drawtext (
HDC, // device description table handle
Lptstr lpstring, // string to be drawn
Int ncount, // String Length
Lprect, // pointer to the rect of the rectangular structure
Uint uformat // specifies the painting option
Textout is not supported on ce, use drawtext or exttextout
Http://www.bolingconsulting.com/progwince.htm
Exttextout
Function: draws a string using the selected font, background color, and body color. You can provide an optional
Recently also in the study of custom controls, previously only their own casually play the next, has been found to be more difficult, just now work easy, every day to see the book to see the Post learning custom control, you also don't say the
Recently also in the study of their own definition of the control, had just played their own casually, has been considered to be more difficult, just now work easy, every day to see the book to see the post to learn their own definition of the
To draw a "talk Duration: XX:XX:XX" On a static control, for example, an interface that shows the user's call durationWith regard to drawing, you can use the handle obtained to the control and CDC, draw through DrawText, or update through the API
Target:Draws the Chinese character to the center of the target rectangle.Questions:Android Canvas drawing, origin in the DrawText is based on baseline, directly to the target rectangle bottom into DrawText, the character position will be lower.
Target:Draws the Chinese character to the center of the target rectangle.Questions:Android Canvas drawing, origin in the DrawText is based on baseline, directly to the target rectangle bottom into DrawText, the character position will be lower.
Article transferred from: Workshop.
Canvas. drawtext ("www.jcodecraeer.com", X, Y, paint); is the X and Y parameters the coordinates of the center of the specified string? Or the coordinates in the upper left corner? The intuitive impression of
Dt_bottom
Adjust the body to the bottom of the rectangle. This value must be used in combination with dt_singleline.
Dt_calcrect
Determines the width and height of the rectangle. If the body contains multiple rows, drawtext uses the
Since ancient times, Chinese people have the habit of writing Chinese characters from right to left and from top to bottom. When we use the output function in our own applications, the output is always a horizontal text from left to right. Is it
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.