Thread: Refreshing windows?

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    46

    Refreshing windows?

    Here's the basic situation (I may have some of the terms wrong ...):

    1. I write some double-width kanji characters to a console window. (Windows XP, VC++)

    The text appears with only half of each character displayed.

    2. I 'click away' from the console to another Windows program, 'click back' and the previously half-displayed text is now completely displayed.

    Obviously it fixes itself when the window repaints, so if I could force it to repaint after outputting the text it (should, maybe) display OK. (This probably is not the way I should be trying to fix my problem, but if it works I'll take it).

    So, how do you get a window to repaint?

    [EDIT] OK, I guess InvalidateRect should work ... I'll see how it goes.

    [EDIT x 2] It didn't go well... still trying.
    Last edited by PaulBlay; 06-18-2009 at 07:18 AM.

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    46
    Never mind, I've got it (mostly) working.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM