Click here to Skip to main content
14,636,301 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to stop flickering of controls in my Dialog window Pin
manoharbalu28-Feb-19 0:43
Membermanoharbalu28-Feb-19 0:43 
AnswerRe: How to stop flickering of controls in my Dialog window Pin
Victor Nijegorodov28-Feb-19 1:02
MemberVictor Nijegorodov28-Feb-19 1:02 
GeneralRe: How to stop flickering of controls in my Dialog window Pin
manoharbalu28-Feb-19 1:56
Membermanoharbalu28-Feb-19 1:56 
A seperate thread function created already which calls a function UpdateAllViews() as shown below every half a second which in turn calls Invalidate the CFP Dialog. This is done to continuously update some real time numerical values on the dialog. When I remove this line
pFPlate->Invalidate(FALSE);

then there is no flickering on the dialog. But the values are not updated. How to avoid this flickering without affecting the value updation.

void tUpdateAllViews( CMainFrame *pMainFrm )
{
while( 1 )
{
pMainFrm->UpdateAllViews();
Sleep(500);
}
}
void CMainFrame::UpdateAllViews()
{

if(pFPlate->GetSafeHwnd()) //CFP Dialog member variable
{
if(pFPlate->IsWindowVisible())
{
pFPlate->Invalidate(FALSE);
}
}
}
AnswerRe: How to stop flickering of controls in my Dialog window Pin
speedbump9928-Feb-19 3:01
Memberspeedbump9928-Feb-19 3:01 
GeneralRe: How to stop flickering of controls in my Dialog window Pin
manoharbalu1-Mar-19 1:09
Membermanoharbalu1-Mar-19 1:09 
GeneralRe: How to stop flickering of controls in my Dialog window Pin
Victor Nijegorodov1-Mar-19 2:25
MemberVictor Nijegorodov1-Mar-19 2:25 
GeneralRe: How to stop flickering of controls in my Dialog window Pin
speedbump991-Mar-19 3:18
Memberspeedbump991-Mar-19 3:18 
GeneralRe: How to stop flickering of controls in my Dialog window Pin
speedbump991-Mar-19 3:33
Memberspeedbump991-Mar-19 3:33 
AnswerRe: How to stop flickering of controls in my Dialog window Pin
leon de boer1-Mar-19 6:48
Memberleon de boer1-Mar-19 6:48 
QuestionDialog box margins Pin
Alexander Kindel21-Feb-19 0:24
MemberAlexander Kindel21-Feb-19 0:24 
AnswerRe: Dialog box margins Pin
Richard MacCutchan21-Feb-19 1:04
mveRichard MacCutchan21-Feb-19 1:04 
AnswerRe: Dialog box margins Pin
speedbump9921-Feb-19 8:45
Memberspeedbump9921-Feb-19 8:45 
GeneralRe: Dialog box margins Pin
Alexander Kindel21-Feb-19 9:30
MemberAlexander Kindel21-Feb-19 9:30 
GeneralRe: Dialog box margins Pin
speedbump9921-Feb-19 10:02
Memberspeedbump9921-Feb-19 10:02 
GeneralRe: Dialog box margins Pin
leon de boer22-Feb-19 6:05
Memberleon de boer22-Feb-19 6:05 
GeneralRe: Dialog box margins Pin
speedbump9922-Feb-19 10:01
Memberspeedbump9922-Feb-19 10:01 
AnswerRe: Dialog box margins Pin
Maximilien22-Feb-19 4:23
MemberMaximilien22-Feb-19 4:23 
GeneralRe: Dialog box margins Pin
leon de boer22-Feb-19 5:39
Memberleon de boer22-Feb-19 5:39 
GeneralRe: Dialog box margins Pin
Maximilien23-Feb-19 1:49
MemberMaximilien23-Feb-19 1:49 
GeneralRe: Dialog box margins Pin
leon de boer23-Feb-19 4:30
Memberleon de boer23-Feb-19 4:30 
AnswerRe: Dialog box margins Pin
leon de boer22-Feb-19 5:37
Memberleon de boer22-Feb-19 5:37 
GeneralRe: Dialog box margins Pin
Alexander Kindel22-Feb-19 9:04
MemberAlexander Kindel22-Feb-19 9:04 
GeneralRe: Dialog box margins Pin
leon de boer22-Feb-19 10:00
Memberleon de boer22-Feb-19 10:00 
SuggestionRe: Dialog box margins Pin
David Crow24-Feb-19 16:23
MemberDavid Crow24-Feb-19 16:23 
QuestionTraceability of Dynamic Memory Allocation Faults Pin
HS_C_Student16-Feb-19 22:24
MemberHS_C_Student16-Feb-19 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.