oroussea
asked on
How to update the parent of a modeless child dialog window
Hello
I have a class that inherit from CScrollView which creates a modeless dialog box when the user clicks on a button:
m_dlg = new CActorPropertiesDlg;
m_dlg->Create(IDD_PROPERTI ES, this);
m_dlg->ShowWindow(SW_SHOWN ORMAL);
What i want to achieve is the parent must still be refreshed when the focus is on the modeless dialog... right now, its only redrawn when the focus is on the parent.
My parent CScrollView object is refreshed using SetTimer(1, 100, NULL)... and in OnTimer( ), i use Invalidate.
How could i tell the modeless dialog to continue to update its parent each 100 ms?
Thanks
I have a class that inherit from CScrollView which creates a modeless dialog box when the user clicks on a button:
m_dlg = new CActorPropertiesDlg;
m_dlg->Create(IDD_PROPERTI
m_dlg->ShowWindow(SW_SHOWN
What i want to achieve is the parent must still be refreshed when the focus is on the modeless dialog... right now, its only redrawn when the focus is on the parent.
My parent CScrollView object is refreshed using SetTimer(1, 100, NULL)... and in OnTimer( ), i use Invalidate.
How could i tell the modeless dialog to continue to update its parent each 100 ms?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You don't need to tell anything, parent continues to handle events in any case.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Because its not like i told the parent to stop handling the timer event...
Should i set something to tell the parent to process the events even though it doesn't have focus?