Refreshing windows?

This is a discussion on Refreshing windows? within the C Programming forums, part of the General Programming Boards category; Here's the basic situation (I may have some of the terms wrong ...): 1. I write some double-width kanji characters ...

  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 08: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, 03:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 06:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 03:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 01:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 06:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21