We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think DT_CALCRECT maybe only calculate the rect for the string. But in DrawTextEx2, the text will be drawed.
The text was updated successfully, but these errors were encountered:
Really? Please show me the code.
Sorry, something went wrong.
if button dwStyle add BS_CENTER. in paint_content_focus
/*draw focus frame*/ if (BUTTON_STATUS(pctrl) & BST_FOCUS) { focus_rc = *prc_cont; if (!BUTTON_IS_PUSHBTN(pctrl) && !(pctrl->dwStyle & BS_PUSHLIKE) && is_get_fmt) { dt_fmt |= DT_CALCRECT; DrawText (hdc, pctrl->spCaption, -1, &focus_rc, dt_fmt); } if (!is_get_fg) fg_color = GetWindowElementAttr((HWND)pctrl, WE_FGC_THREED_BODY); win_rdr->draw_focus_frame(hdc, &focus_rc, fg_color); }
Calculate text size format will add DT_CENTER
And in DrawTextEx2
If style have DT_CENTER, ctxt.only_extent = FALSE in while loop. And the text will be draw again.
This is a bug and have fixed.
No branches or pull requests
I think DT_CALCRECT maybe only calculate the rect for the string. But in DrawTextEx2, the text will be drawed.
The text was updated successfully, but these errors were encountered: