MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / CMultiFileDialogImpl

Function CMultiFileDialogImpl

src/Setup/wtl90/atldlgs.h:483–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481#endif
482
483 CMultiFileDialogImpl(
484 LPCTSTR lpszDefExt = NULL,
485 LPCTSTR lpszFileName = NULL,
486 DWORD dwFlags = OFN_HIDEREADONLY,
487 LPCTSTR lpszFilter = NULL,
488 HWND hWndParent = NULL)
489 : CFileDialogImpl<T>(TRUE, lpszDefExt, lpszFileName, dwFlags, lpszFilter, hWndParent),
490 m_pNextFile(NULL)
491 {
492 m_ofn.Flags |= OFN_ALLOWMULTISELECT; // Force multiple selection mode
493
494#ifndef _UNICODE
495#ifdef _versionhelpers_H_INCLUDED_
496 OSVERSIONINFOEX ovi = { sizeof(OSVERSIONINFOEX) };
497 ovi.dwPlatformId = VER_PLATFORM_WIN32_NT;
498 DWORDLONG const dwlConditionMask = ::VerSetConditionMask(0, VER_PLATFORMID, VER_EQUAL);
499 m_bIsNT = (::VerifyVersionInfo(&ovi, VER_PLATFORMID, dwlConditionMask) != FALSE);
500#else // !_versionhelpers_H_INCLUDED_
501 OSVERSIONINFO ovi = { sizeof(OSVERSIONINFO) };
502 ::GetVersionEx(&ovi);
503 m_bIsNT = (ovi.dwPlatformId == VER_PLATFORM_WIN32_NT);
504#endif // _versionhelpers_H_INCLUDED_
505 if (m_bIsNT)
506 {
507 // On NT platforms, GetOpenFileNameA thunks to GetOpenFileNameW and there
508 // is absolutely nothing we can do except to start off with a large buffer.
509 ATLVERIFY(ResizeFilenameBuffer(_WTL_FIXED_OFN_BUFFER_LENGTH));
510 }
511#endif
512 }
513
514 ~CMultiFileDialogImpl()
515 {

Callers

nothing calls this directly

Calls 1

ResizeFilenameBufferFunction · 0.85

Tested by

no test coverage detected