Parent notification in MFC Dialog -


i have first dialog simple button on , while clicking button, second dialog created using cdialog::create(idd,this). parent notified when second dialog destroyed without adding code second dialog i.e., without adding m_pparent->notify() line in ondestroy method. have tried onparentnotify, pretranslatemessage, subclasswindow in parent dialog no success. have not used ws_child style second dialog. idea?

to complete: in fact, have combobox derived class (but issue same buttons) , i'm displaying modeless dialog instead of displaying listbox. control generic possible modeless dialog used. that's why not want add specific notification in second dialog. if i'm obliged, use trick asked more generic solution. pretranslatemessage catches wm_paint, wm_ncmouseleave , wm_ncmousemove.

use base class , have parent refer modeless child base class only. in base postncdestroy have post parent.

it doesn't make sense have parent bunch of filtering / spying on messages. make sense implement behavior in base class want have common different future flavors might have of modeless child.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -