Revision: 350
http://svn.sourceforge.net/pmplib/?rev=350&view=rev
Author: nyaochi
Date: 2007-02-11 21:00:49 -0800 (Sun, 11 Feb 2007)
Log Message:
-----------
Forgot to add this file.
Added Paths:
-----------
trunk/pmplib/frontend/easypmp/win32gui/folderdialog.h
Added: trunk/pmplib/frontend/easypmp/win32gui/folderdialog.h
===================================================================
--- trunk/pmplib/frontend/easypmp/win32gui/folderdialog.h (rev 0)
+++ trunk/pmplib/frontend/easypmp/win32gui/folderdialog.h 2007-02-12 05:00:49 UTC (rev 350)
@@ -0,0 +1,44 @@
+/*
+ * Custom folder dialog.
+ *
+ * Copyright (c) 2005-2007 Naoaki Okazaki
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
+ * http://www.gnu.org/copyleft/gpl.html .
+ *
+ */
+
+/* $Id:$ */
+
+#pragma once
+
+class CFolderDialog2 : public CFolderDialogImpl<CFolderDialog2>
+{
+public:
+ CFolderDialog2(HWND hWndParent = NULL, LPCTSTR lpstrTitle = NULL, UINT uFlags = BIF_RETURNONLYFSDIRS)
+ : CFolderDialogImpl<CFolderDialog2>(hWndParent, lpstrTitle, uFlags)
+ {
+ }
+
+ void OnInitialized()
+ {
+ this->SetSelection(m_szFolderPath);
+ }
+
+ void SetFolderPath(LPCTSTR szFolderPath)
+ {
+ ::lstrcpy(m_szFolderPath, szFolderPath);
+ }
+};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|