CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2001
    Location
    Chennai
    Posts
    101

    Refreshing the static control from Timer

    I have a static control on which some text is displayed.

    OnTimer, if i try to refresh the text or assign anything, it doesn't gets refresh.
    If i call the same refresh function from anywhere else, it works fine.

    Any hints, why it is not working from Timer function..

    TIA
    Anupam
    Tks
    Anupam

  2. #2
    Join Date
    Feb 2000
    Location
    Indore, India
    Posts
    1,046

    Re: Refreshing the static control from Timer

    Hello,

    Please post your code where you initialised the timer and where you refresh your static control.

    Regards.
    Pravin.
    Let me know if I have helped by rating this post

    Recent FAQs

    Drag an image
    Area of a window exposed on desktop
    Display rotated bitmap

  3. #3
    Join Date
    Jun 2005
    Location
    Tirunelveli-Tamil Nadu-India
    Posts
    354

    Smile Re: Refreshing the static control from Timer

    use this code. it may be work

    MSG msg = {NULL};
    If I Helped You, "Rate This Post"

    Thanks
    Guna

  4. #4
    Join Date
    Apr 1999
    Posts
    3,585

    Re: Refreshing the static control from Timer

    Why do you need a timer to refresh the text?
    Gort...Klaatu, Barada Nikto!

  5. #5
    Join Date
    Feb 2006
    Location
    London
    Posts
    238

    Re: Refreshing the static control from Timer

    Quote Originally Posted by anandam2000
    I have a static control on which some text is displayed.

    OnTimer, if i try to refresh the text or assign anything, it doesn't gets refresh.
    If i call the same refresh function from anywhere else, it works fine.

    Any hints, why it is not working from Timer function..

    TIA
    Anupam
    Control's ID must not be IDC_STATIC.

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

Featured