#include "wx/wxprec.h"
#include <wx/msw/wrapcdlg.h>
#include <wx/msw/missing.h>
#include <wx/utils.h>
#include <wx/msgdlg.h>
#include <wx/filefn.h>
#include <wx/intl.h>
#include <wx/log.h>
#include <wx/app.h>
#include <wx/math.h>
#include <stdlib.h>
#include <string.h>
#include <wx/dynlib.h>
#include <wx/filename.h>
#include <wx/scopeguard.h>
#include <wx/sizer.h>
#include <wx/tokenzr.h>
#include <wx/modalhook.h>
#include <wx/filectrl.h>
#include "../FileDialog.h"
#include <shlobj.h>
Go to the source code of this file.
◆ WM_GETISHELLBROWSER
#define WM_GETISHELLBROWSER WM_USER + 7 |
◆ wxMAXEXT
◆ wxMAXFILE
◆ wxMAXPATH
◆ wxTRY_SMALLER_OPENFILENAME
#define wxTRY_SMALLER_OPENFILENAME |
◆ DoShowCommFileDialog()
static bool DoShowCommFileDialog |
( |
OPENFILENAME * |
of, |
|
|
long |
style, |
|
|
DWORD * |
err |
|
) |
| |
|
static |
◆ gs_rectDialog()
static wxRect gs_rectDialog |
( |
0 |
, |
|
|
0 |
, |
|
|
428 |
, |
|
|
266 |
|
|
) |
| |
|
static |
◆ ShowCommFileDialog()
static bool ShowCommFileDialog |
( |
OPENFILENAME * |
of, |
|
|
long |
style |
|
) |
| |
|
static |
Definition at line 848 of file win/FileDialogPrivate.cpp.
849{
850 DWORD errCode;
852
853#ifdef wxTRY_SMALLER_OPENFILENAME
854
855
856 if (!success && errCode == CDERR_STRUCTSIZE &&
858 {
860
862
863 if (success || !errCode)
864 {
865
867 }
868 }
869#endif
870
871 if (!success && errCode == FNERR_INVALIDFILENAME && of->lpstrFile[0])
872 {
873
874
875 of->lpstrFile[0] =
wxT(
'\0');
877 }
878
879 if (!success)
880 {
881
882 if (errCode != 0)
883 {
884 wxLogError(
wxT(
"File dialog failed with error code %0lx."), errCode);
885 }
886
887
888 return false;
889 }
890
891 return true;
892}
static bool DoShowCommFileDialog(OPENFILENAME *of, long style, DWORD *err)
static const DWORD wxOPENFILENAME_V4_SIZE
static DWORD gs_ofStructSize
References DoShowCommFileDialog(), gs_ofStructSize, anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, wxOPENFILENAME_V4_SIZE, and wxT().
◆ gs_ofStructSize
◆ wxOPENFILENAME_V4_SIZE
const DWORD wxOPENFILENAME_V4_SIZE = 76 |
|
static |
◆ wxOPENFILENAME_V5_SIZE
const DWORD wxOPENFILENAME_V5_SIZE = 88 |
|
static |