mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
FileChooser: Improve MinGW compatibility
This commit is contained in:
parent
5753466bfb
commit
a10cc6faff
1 changed files with 7 additions and 1 deletions
|
|
@ -23,10 +23,14 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#if JUCE_MINGW
|
||||
LWSTDAPI IUnknown_GetWindow (IUnknown* punk, HWND* phwnd);
|
||||
#endif
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
// Implemented in juce_win32_Messageing.cpp
|
||||
// Implemented in juce_win32_Messaging.cpp
|
||||
bool windowsDispatchNextMessageOnSystemQueue (bool returnIfNoPendingMessages);
|
||||
|
||||
class Win32NativeFileChooser : private Thread
|
||||
|
|
@ -485,11 +489,13 @@ private:
|
|||
|
||||
const Remover remover (*this);
|
||||
|
||||
#if ! JUCE_MINGW
|
||||
if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista
|
||||
&& customComponent == nullptr)
|
||||
{
|
||||
return openDialogVistaAndUp (async);
|
||||
}
|
||||
#endif
|
||||
|
||||
return openDialogPreVista (async);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue