Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ListView handling Pin
Antonyemac29-Feb-08 20:30
Antonyemac29-Feb-08 20:30 
GeneralRe: ListView handling Pin
David Crow1-Mar-08 10:58
David Crow1-Mar-08 10:58 
QuestionRe: ListView handling Pin
Antonyemac2-Mar-08 18:57
Antonyemac2-Mar-08 18:57 
QuestionRe: ListView handling Pin
David Crow3-Mar-08 2:57
David Crow3-Mar-08 2:57 
Questionhow can i load a bitmap on "command button"(ActiveX)at run time Pin
varun0128-Feb-08 18:20
varun0128-Feb-08 18:20 
GeneralParent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
vicky0000028-Feb-08 18:06
vicky0000028-Feb-08 18:06 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
Hamid_RT28-Feb-08 19:30
Hamid_RT28-Feb-08 19:30 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
Iain Clarke, Warrior Programmer28-Feb-08 23:32
Iain Clarke, Warrior Programmer28-Feb-08 23:32 
When then child dialog disappears, the underneath area needs to be repainted, so the parent dialog (and some controls) are invalidated, ready for a WM_PAINT message.

My guess is that you have something like:

void CParentDlg::OnSomeButton ()
{
   CCHildDlg dlg (this);

   dlg.m_ManyThings = Blah;

   if (dlg.DoModal () != IDOK) return;

   DoSomeVerySlowStuff ();

   // ChildDlg's destructor implicitly called here.
}


The paint messages won't be handled until after CParentDlg::OnSomeButton returns. So, are you doing some slow steps? If you cancel out of the child dialog, is the repainting faster? Is the child dialog doing loads of things in its destructor? Or in its OnDestroy method?

Iain.

Iain Clarke appears because CPallini still cares.

GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
vicky0000029-Feb-08 0:07
vicky0000029-Feb-08 0:07 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
Iain Clarke, Warrior Programmer29-Feb-08 0:54
Iain Clarke, Warrior Programmer29-Feb-08 0:54 
QuestionRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
David Crow29-Feb-08 3:07
David Crow29-Feb-08 3:07 
AnswerRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
JohnCz4-Mar-08 12:41
JohnCz4-Mar-08 12:41 
GeneralImages in High Resolution Pin
Anu_Bala28-Feb-08 17:22
Anu_Bala28-Feb-08 17:22 
GeneralRe: Images in High Resolution Pin
nbugalia28-Feb-08 19:26
nbugalia28-Feb-08 19:26 
GeneralRe: Images in High Resolution Pin
Hamid_RT28-Feb-08 19:33
Hamid_RT28-Feb-08 19:33 
Generallvalue rvalue discussion Pin
George_George28-Feb-08 17:18
George_George28-Feb-08 17:18 
GeneralRe: lvalue rvalue discussion Pin
nbugalia28-Feb-08 19:30
nbugalia28-Feb-08 19:30 
GeneralRe: lvalue rvalue discussion Pin
George_George28-Feb-08 19:44
George_George28-Feb-08 19:44 
GeneralRe: lvalue rvalue discussion Pin
nbugalia28-Feb-08 19:48
nbugalia28-Feb-08 19:48 
GeneralRe: lvalue rvalue discussion Pin
George_George28-Feb-08 20:18
George_George28-Feb-08 20:18 
GeneralRe: lvalue rvalue discussion Pin
David Crow29-Feb-08 3:12
David Crow29-Feb-08 3:12 
GeneralRe: lvalue rvalue discussion Pin
George_George29-Feb-08 22:31
George_George29-Feb-08 22:31 
GeneralRe: lvalue rvalue discussion Pin
David Crow1-Mar-08 10:59
David Crow1-Mar-08 10:59 
GeneralRe: lvalue rvalue discussion Pin
George_George1-Mar-08 19:07
George_George1-Mar-08 19:07 
GeneralRe: lvalue rvalue discussion Pin
David Crow2-Mar-08 9:02
David Crow2-Mar-08 9:02 

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.