Search:

Type: Posts; User: kevintse

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,291

    This approach just fixes my problem, all I need...

    This approach just fixes my problem, all I need is dynamic memory allocation.
    Now I can compute how many characters will fit one line, and I can put the character string for each line in the...
  2. Replies
    9
    Views
    3,291

    The text file is a long article. basically, I...

    The text file is a long article. basically, I want to make a book reader which reads a text file (a book or an article) and displays the content of the text file in the window, the program has to...
  3. Replies
    9
    Views
    3,291

    I was reading the book by Petzold, and there was...

    I was reading the book by Petzold, and there was indeed an example showing how to create scroll bars and how to scroll text. but the text he was using was not read from a text file, it was just an...
  4. Replies
    9
    Views
    3,291

    Someone guided me to using GetTextExtentPoint32,...

    Someone guided me to using GetTextExtentPoint32, which computes the width and height of a string of text. so now, I know the width of the whole content, and the number of lines would be...
  5. Replies
    9
    Views
    3,291

    Thanks for your reply, Bob. Well, I already...

    Thanks for your reply, Bob.
    Well, I already tried the way you said above before I raised this thread, I was not using fixed width font, while GetTextMetrics can only obtain average width of the...
  6. Replies
    9
    Views
    3,291

    How to implement such a scroll bar?

    Hi, there
    I want to create a scroll bar that can scroll the content in the main window using pure win32 api. The difficulty is that I don't know how to calculate the accurate length of the whole...
Results 1 to 6 of 6