Click here to Skip to main content
15,896,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have Text Control in the dialog. After I run app the text (or control static) is blinking from time to time. I set the text in the control like below.How can I remove this effect?

What I have tried:

I tried change the properties, perhaps it should be called from another method.

My OnInitDialog():

C++
CBCGPStatic m_path1Name; 
CFileInfo m_substr1; //it is our class The text control has variable m_pathName1

m_pathName1 = APPLICATION->GetRecentFile(0);
m_substr1.Create(m_pathName1);
m_pathName1 = m_substr1.GetFileRoot();
m_path1Name.SetWindowTextW(m_pathName1);
Posted
Updated 14-Dec-17 1:51am
v2
Comments
Jochen Arndt 14-Dec-17 7:52am    
There should be no flicker when setting the text only in OnInitDialog().

Or do you set the text also elsewhere frequently?
Or is m_pathName1 (the string) bound to the static control (that is you have a DDX_Text(..., m_pathName1) in DoDataExchange) and update frequently?
Member 13495762 14-Dec-17 8:09am    
yes, I have it in DDX_Control. I set in this dialog few static text next to each other

1 solution

 
Share this answer
 
Comments
Richard Deeming 14-Dec-17 9:33am    
Isn't that the opposite of what the OP's asking for? :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900