In the dialog how to destroy a dynamically created control when other child control's got focus or clicked on?

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

I have a MFC dialog based application, when click on CButton I am dynamically creating and displaying a listbox.

If I click some other control and click on dialog client area I have to destroy this list box.

But I don't know how to get notification in the dialog when list box control in a dialog lost focus.

Or I don't know how to get notification in the dialog when click on dialog client area or child controls in the dialog?

I shared my sample application in the below path.

https://aspiresysinc-my.sharepoint....xNqhm6TkNvF8cB6THPPw7i12sR71VtOw1xlA?e=ncgJ5g

Thanks in advance.

Continue reading...
 
Back
Top