Link to home
Start Free TrialLog in
Avatar of chrispauljarram
chrispauljarram

asked on

Is there a safe way to end a modal dialog from another thread?

Hi,

Is there a safe and simple way to end a modal dialog from another thread in MFC/Win32?  I want to be able to force a modal dialog to close from elsewhere but just calling EndDialog() on it sometimes results in an Access Exception.

Thanks,
Chris
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel 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 chrispauljarram
chrispauljarram

ASKER

Cheers, that's fine :)