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

    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: 198
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
    Iasi - Romania

    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.
    "When in Rome, do as Romans do."
    My latest articles:

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