Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SetWindowText Blinking problem

SetWindowText Blinking problem

Scheduled Pinned Locked Moved C / C++ / MFC
help
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    econy
    wrote on last edited by
    #1

    I use a SetWindowTextW() to display a string in a LCD screen, based on WinCE OS. But the message blinks almost every 1- 3 seconds, almost periodically, but not at a fixed cycle.sometimes 1 seconds, sometimes 3 or 4 seconds. I call SetWindowTextW() at a period of 2 seconds. Appreciate any suggestions

    L D W 3 Replies Last reply
    0
    • E econy

      I use a SetWindowTextW() to display a string in a LCD screen, based on WinCE OS. But the message blinks almost every 1- 3 seconds, almost periodically, but not at a fixed cycle.sometimes 1 seconds, sometimes 3 or 4 seconds. I call SetWindowTextW() at a period of 2 seconds. Appreciate any suggestions

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You cannot guarantee timing in this sort of issue. There are other things in Windows that may take up time.

      E 1 Reply Last reply
      0
      • L Lost User

        You cannot guarantee timing in this sort of issue. There are other things in Windows that may take up time.

        E Offline
        E Offline
        econy
        wrote on last edited by
        #3

        I mean, I don't want the message be flashing.

        L 1 Reply Last reply
        0
        • E econy

          I mean, I don't want the message be flashing.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Then don't keep changing it.

          1 Reply Last reply
          0
          • E econy

            I use a SetWindowTextW() to display a string in a LCD screen, based on WinCE OS. But the message blinks almost every 1- 3 seconds, almost periodically, but not at a fixed cycle.sometimes 1 seconds, sometimes 3 or 4 seconds. I call SetWindowTextW() at a period of 2 seconds. Appreciate any suggestions

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            From where are you calling SetWindowTextW()?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            1 Reply Last reply
            0
            • E econy

              I use a SetWindowTextW() to display a string in a LCD screen, based on WinCE OS. But the message blinks almost every 1- 3 seconds, almost periodically, but not at a fixed cycle.sometimes 1 seconds, sometimes 3 or 4 seconds. I call SetWindowTextW() at a period of 2 seconds. Appreciate any suggestions

              W Offline
              W Offline
              willcoxson
              wrote on last edited by
              #6

              If it's blinking when you set the text to the same thing over and over, use AfxSetWindowText(). It checks to see what the current text is and only does the SetWindowText if the text is different than the current text.

              E 1 Reply Last reply
              0
              • W willcoxson

                If it's blinking when you set the text to the same thing over and over, use AfxSetWindowText(). It checks to see what the current text is and only does the SetWindowText if the text is different than the current text.

                E Offline
                E Offline
                econy
                wrote on last edited by
                #7

                Thank you, I think this is what I need.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups