Results 1 to 3 of 3

Thread: Refresh a static control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Err..

    If I put 1000 in a static control and then 5, 5000 shows up. I'd assume this is because I'm not refreshing the static, but I've sent it all the possible messages, and UpdateWindow. Is there a ... Blair smile ... third way ?

    Thanks,

    God (aka Me)
    Courgettes.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Hmm...I assume you've tried
    Code:
    SendMessage(GetDlgItem(hWnd_Main, IDC_STATIC), WM_SETTEXT, 0, (LPCTSTR)"1000");
    ?

    How are you setting the text?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    I'm using SetWindowText, but I'll try your method,

    Thanks,

    Me.
    Courgettes.

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