Link to home
Start Free TrialLog in
Avatar of steva
steva

asked on

Closing a Dialog Window

I would like to close my dialog window from button code. I can see that EndDialog() is probaby the routine to call but it wants a "handle" to the dialog window.  How can I get this from my code.  It doesn't seem to be passed in.

Thanks for any help.
Steve
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

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 steva
steva

ASKER

Ok, that works fine.  I was looking at the EndDialog() for Windows Management, that returns a BOOL and takes a HWND parameter.  Apparently when you're in a Dialog button routine you default to the EndDialog() you pointed to rather than the one I was looking at.

Thanks,
Steve