Mercurial > dwindows
view win/XBrowseForFolder.h @ 2790:20d39af27aa4
Android: Add a new function for Android dw_file_open() which will open the
URI that dw_file_browse() now saves at the end of the returned path.
This is a hacky method of letting things function on Android... since
Android seems to not let you open files with a pure path. Even if the file
exists it will fail to open, you need to use the ugly Android URIs.
Not sure if I will keep this solution or not, but committing it so Dynamic
Windows Interface Builder will function on Android in the meantime.
dw_file_open() just calls the system open() on non-Android platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 13 Jul 2022 14:57:38 +0000 |
parents | bf3a6d596cd4 |
children |
line wrap: on
line source
// XBrowseForFolder.h Version 1.2 // // Author: Hans Dietrich // hdietrich@gmail.com // // This software is released into the public domain. You are free to use // it in any way you like, except that you may not sell this source code. // // This software is provided "as is" with no expressed or implied warranty. // I accept no liability for any damage or loss of business that this // software may cause. // /////////////////////////////////////////////////////////////////////////////// #ifndef XBROWSEFORFOLDER_H #define XBROWSEFORFOLDER_H #ifdef __cplusplus extern "C" { #endif BOOL XBrowseForFolder(HWND hWnd, LPCTSTR lpszInitialFolder, int nFolder, LPCTSTR lpszCaption, LPTSTR lpszBuf, DWORD dwBufSize, BOOL bEditBox); #ifdef __cplusplus } #endif #endif //XBROWSEFORFOLDER_H