CStaic SetWindowText() blinking problem [Solved]
-
Hi, in my program,I use a CStatic object to flash a string every 3-4 seconds. But I found, sometimes the string is blinking. How can I flash the string and don't have jitter phenomenon?
Define flash and blink. In my book, they are synonymous. Where are you setting the
CStatic
object's value at?"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
-
Define flash and blink. In my book, they are synonymous. Where are you setting the
CStatic
object's value at?"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
I want to show the string like the follow sequence: 0 - 4 Second: Display string 4 - 8 second: Display nothing,clear screen 8 - 12 second: Display string 12-16 second: Display nothing,clear screen ... Now I found the string blinking during 0-4,8-12 seconds.
-
I want to show the string like the follow sequence: 0 - 4 Second: Display string 4 - 8 second: Display nothing,clear screen 8 - 12 second: Display string 12-16 second: Display nothing,clear screen ... Now I found the string blinking during 0-4,8-12 seconds.
It looks your text flickers because you are repeadetly drawing the string. In the 0-4 (and 8-12) interval you have to draw the string just once. You could set a boolean variable the very first time you draw the string and then check it before drawing it again (of course you have to reset the boolean variable upon entering in the 'blank' interval).
Veni, vidi, vici.
-
It looks your text flickers because you are repeadetly drawing the string. In the 0-4 (and 8-12) interval you have to draw the string just once. You could set a boolean variable the very first time you draw the string and then check it before drawing it again (of course you have to reset the boolean variable upon entering in the 'blank' interval).
Veni, vidi, vici.