]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
use HasTransparentBackground() to correctly draw the background of static text/box...
[wxWidgets.git] / src / common / filename.cpp
index d0776be7859cab2bc7e786eda800e17d1ed4e617..18b8b2759e13c80866d5ffa52f0079fafa2b8f00 100644 (file)
@@ -453,6 +453,18 @@ void wxFileName::Assign(const wxString& fullpathOrig,
     Assign(volume, path, name, ext, format);
 }
 
+void wxFileName::Assign(const wxString& pathOrig,
+                        const wxString& name,
+                        const wxString& ext,
+                        wxPathFormat format)
+{
+    wxString volume,
+             path;
+    SplitVolume(pathOrig, &volume, &path, format);
+
+    Assign(volume, path, name, ext, format);
+}
+
 void wxFileName::AssignDir(const wxString& dir, wxPathFormat format)
 {
     Assign(dir, _T(""), format);