Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

On my Dialog i programmatically set some texts as button caption. Il also update a treeview control.By using theses actions we can observe durant less than a second a flickering.
I try do the following instruction but it don't work.

Can someone help me?

What I have tried:

This is what i tried without any success :
CWaitCursor wait;
SetRedraw(FALSE); 
/* my instructions here ----------------------
-----
-----
/*----------------------------------------------*/
SetRedraw(TRUE);
RedrawWindow(); 


Thank's in advance
Posted
Comments
Jochen Arndt 18-Jul-17 3:06am    
Not enough information: For which window is the code snippet and when / how often is it called.

A guess:
Is that code snippet for your dialog? Then you will disable redrawing for the dialog window but you should disable it for the control (the tree view).
Kornfeld Eliyahu Peter 18-Jul-17 5:09am    
Your actual drawing code may help here, but meanwhile you may look for 'double buffering'...

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