Fixed wxSlider95 bug; updated .dsp files; added Set/GetLastDirectory to wxDocManager
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -706,6 +706,7 @@ wxDocManager::wxDocManager(long flags, bool initialize)
|
||||
m_currentView = (wxView *) NULL;
|
||||
m_maxDocsOpen = 10000;
|
||||
m_fileHistory = (wxFileHistory *) NULL;
|
||||
m_lastDirectory = wxT("") ;
|
||||
if (initialize)
|
||||
Initialize();
|
||||
}
|
||||
@@ -1224,7 +1225,7 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
|
||||
|
||||
int FilterIndex = 0;
|
||||
wxString pathTmp = wxFileSelectorEx(_("Select a file"),
|
||||
wxT(""),
|
||||
m_lastDirectory,
|
||||
wxT(""),
|
||||
&FilterIndex,
|
||||
descrBuf,
|
||||
@@ -1233,6 +1234,8 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
|
||||
|
||||
if (!pathTmp.IsEmpty())
|
||||
{
|
||||
m_lastDirectory = wxPathOnly(pathTmp);
|
||||
|
||||
path = pathTmp;
|
||||
wxString theExt = FindExtension(path);
|
||||
if (!theExt)
|
||||
|
@@ -140,7 +140,7 @@ D=$(D)DLL
|
||||
WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
|
||||
|
||||
INC=-I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib -I$(WXDIR)/src/jpeg $(EXTRAINC)
|
||||
LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib # $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\xpm.lib
|
||||
LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\xpm.lib
|
||||
|
||||
MAKEPRECOMP=/YcWX/WXPREC.H
|
||||
OPTIONS=
|
||||
|
@@ -239,7 +239,7 @@ bool wxSlider95::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
|
||||
nScrollInc = 0;
|
||||
}
|
||||
|
||||
if ( nScrollInc == 0 )
|
||||
if (scrollEvent == wxEVT_NULL)
|
||||
{
|
||||
// no event...
|
||||
return FALSE;
|
||||
|
@@ -79,6 +79,10 @@ LIB32=link.exe -lib
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\common\appcmn.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\common\choiccmn.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@@ -85,6 +85,10 @@ LIB32=link.exe -lib
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\common\appcmn.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\common\choiccmn.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@@ -92,6 +92,10 @@ LINK32=link.exe
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\common\appcmn.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\common\choiccmn.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
Reference in New Issue
Block a user