Added George Tasker's forward slash fix to file dialog; added some consts to prntbase.h;

removed redundant IMPLEMENT_WXWIN_MAINs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-02-19 21:54:37 +00:00
parent b97b1af824
commit 0bc9b25e9a
10 changed files with 47 additions and 41 deletions

View File

@@ -222,12 +222,19 @@ int wxFileDialog::ShowModal(void)
of.lpstrFileTitle = titleBuffer;
of.nMaxFileTitle = MAXFILE + 1 + MAXEXT; // Windows 3.0 and 3.1
// Convert forward slashes to backslashes (file selector doesn't like
// forward slashes)
size_t i = 0;
size_t len = m_dir.Length();
for (i = 0; i < len; i++)
if (m_dir[i] == '/')
m_dir[i] = '\\';
of.lpstrInitialDir = (const char *) m_dir;
of.Flags = msw_flags;
//=== Like Alejandro Sierra's wildcard modification >>===================
/*
In wxFileSelector you can put, instead of a single wild_card,
@@ -259,7 +266,7 @@ int wxFileDialog::ShowModal(void)
filterBuffer += "|";
// Replace | with \0
for ( unsigned int i = 0; i < filterBuffer.Len(); i++ ) {
for (i = 0; i < filterBuffer.Len(); i++ ) {
if ( filterBuffer.GetChar(i) == '|' ) {
filterBuffer[i] = '\0';
}