Link to home
Start Free TrialLog in
Avatar of sudhakar_koundinya
sudhakar_koundinya

asked on

Getting HWnd instance of Parent

Hi All,

I have HWND instance of a Dialog. Now I wanted to get the HWND instance of the parent. How can I get it??

Thanks
Sudhakar
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sudhakar_koundinya
sudhakar_koundinya

ASKER

Ok thanks

Just one more question

can I get Dlg Id like this??
GetDlgCtrlID(hDlg)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok I am accessing the dialogs of Microsoft Outlook using my application.

Using FindWindow I can access the dialogs. But the problem is Main Window will be in hidden mode. So to Work with Window Messages on that Dialog, I am thinking that I need to have Parent Window Instance also. That is the reason I am asking this question

Thanks
Sudhakar