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.
- Experienced Solver
- Posts: 80
- Joined: Sat Jan 16, 2016 5:57 am
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.
- Part Of The Furniture
- Posts: 3197
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
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.