MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Util_SelectDiskImage

Function Util_SelectDiskImage

source/Windows/WinFrame.cpp:79–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77};
78
79static int Util_SelectDiskImage ( const HWND hwnd, const HINSTANCE hInstance, const char * pTitle, const bool bSave, char *pFilename, const char *pFilter )
80{
81 OPENFILENAME ofn;
82 memset(&ofn, 0, sizeof(OPENFILENAME));
83
84 ofn.lStructSize = sizeof(OPENFILENAME);
85 ofn.hwndOwner = hwnd;
86 ofn.hInstance = hInstance;
87 ofn.lpstrFilter = pFilter;
88 ofn.lpstrFile = pFilename;
89 ofn.nMaxFile = MAX_PATH; // sizeof(szFilename);
90 ofn.lpstrInitialDir = g_sCurrentDir.c_str();
91 ofn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY;
92 ofn.lpstrTitle = pTitle;
93
94 if( bSave )
95 ofn.Flags |= OFN_FILEMUSTEXIST;
96
97 int nRes = bSave ? GetSaveFileName(&ofn) : GetOpenFileName(&ofn);
98 return nRes;
99}
100
101void Win32Frame::SetAltEnterToggleFullScreen(bool mode)
102{

Callers 1

ProcessDiskPopupMenuMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected