CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2022
    Posts
    2

    Red face How to fix Rect & DrawText?

    I have an client game online use gdi32 to createfont. I need to change fontface and fix font size to bigger.
    But when i change size to 14 or larger, word will be missed on the right.
    Name:  logo.png
Views: 204
Size:  37.2 KB
    Need a programer can work with ollydbg debug and hook dll, i can pay fee

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,230

    Re: How to fix Rect & DrawText?

    DrawText takes an argument which is the rectangle in which the text is to be drawn. You probably enlarged the font size without adjusting that rectangle. You can determine the width and height of the rectangle, using DT_CALCRECT flag. Fore more info see DrawText function.

    If you are looking for a programmer, please post an announcement in Open Positions (Jobs) forum section.
    Last edited by ovidiucucu; October 27th, 2022 at 11:30 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpert.ro/blog/

  3. #3
    Join Date
    Oct 2022
    Posts
    2

    Re: How to fix Rect & DrawText?

    Quote Originally Posted by ovidiucucu View Post
    DrawText takes an argument which is the rectangle in which the text is to be drawn. You probably enlarged the font size without adjusting that rectangle. You can determine the width and height of the rectangle, using DT_CALCRECT flag. Fore more info see DrawText function.

    If you are looking for a programmer, please post an announcement in Open Positions (Jobs) forum section.
    Many thanks @ovidiucucu. I find same problem in post https://forums.codeguru.com/showthre...entPoint32-API
    Who can hook dll or fix it by ollydbg, please pm me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured