-
MFC
Dear Sir,
In MFC programs, may I know the procedure for these problems:
1. After creation of a window and help menu attached to it, when the user clicks the help item, a Pop-up window appears. For this, don't we require the handle of the main (i.e., parent) window? How to get the handle for window? In class CFrameWnd, m_hWnd is a protected member!
2. In the above (question #1), when the user clicks the pop-up window, another pop-up window comes, and so on upto a limit, say 5. When the actual parent window is closed, all the offspring windows automatically get destroyed.
With many thanks,
Yours sincerely,
T.S. Prasad
-
Re: MFC
1. Use GetSafeHwnd();
2. What you need them to stay?
-
Re: MFC
Dear Sir/Madam,
Thank you very much for your suggestion. I hope I will obtain such benefits from peers like you in future, too.
With many thanks,
Yours sincerely,
T.S. Prasad