wxFileDialog::EndModal(int ret) not implemented on both Win and Mac

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Anil8753
Experienced Solver
Experienced Solver
Posts: 93
Joined: Sat Jan 16, 2016 5:57 am
Location: India

wxFileDialog::EndModal(int ret) not implemented on both Win and Mac

Post by Anil8753 »

My requirement is to close the wxFileDialog programmatically. But looks like though wxFileDialog is derived from the wxDialog, EndModal() is not implemented on both Windows and MacOS.

On windows, I found the workaround

Code: Select all

           HWND hwnd = ::FindWindow(L"#32770", L"Select Files");
           SendMessage(hwnd, WM_CLOSE, 0, 0);
But I did not find the way to achieve on the MacOS. Basically, I have very limited knowledge of Mac world.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxFileDialog::EndModal(int ret) not implemented on both Win and Mac

Post by ONEEYEMAN »

Hi,
Looking at this, I don't think there is a way.

You can try to check the wxWidgets testing code and see if its possible.

Thank you.
Post Reply