Permalink
Browse files

The View window that had previously been created has been discarded i…

…n favour of using the Windows Shell function SHCreateShellFolderView which creates an instance of the default folder view for us. This saves a vast amount of work.

The window currently displays a few dummy icons representing connections to remote host machines.  The project has been set-up to use MSLU on Windows 9x to allow Unicode use and so one of these dummy connections used Arabic text to test that.
1 parent 12eacd8 commit 2ecfb4beb59271da3d5a71d87710c92265046694 @alamaison committed Sep 8, 2007
Showing with 567 additions and 594 deletions.
  1. +3 −0 CHANGELOG
  2. +137 −0 COPYING.rtf
  3. +4 −5 ConnCopyPolicy.h
  4. +165 −158 PidlManager.cpp
  5. +49 −30 PidlManager.h
  6. +1 −1 README
  7. +2 −2 Swish.cpp
  8. +6 −8 Swish.rc
  9. +6 −10 Swish.sln
  10. +115 −11 Swish.vcproj
  11. BIN SwishFolder.cpp
  12. +14 −8 SwishFolder.h
  13. +1 −1 SwishFolder.rgs
  14. +0 −201 SwishView.cpp
  15. +0 −136 SwishView.h
  16. +47 −4 remotelimits.h
  17. +17 −19 stdafx.h
View
@@ -1,6 +1,9 @@
swish-0.2
-All previous prototype code discarded
-Created Explorer namespace extension with empty window
+-Used SHCreateShellFolderView to create default shell view window giving
+ best possible Explorer integration
+-Created PIDL Manager to handle host (connection) folder item
swish-0.1.1
-Experimentation with Visual Studio and linking with gcc-compiled libssh
View
Oops, something went wrong.
View
@@ -17,11 +17,10 @@ class CConnCopyPolicy
public:
static void init( LPITEMIDLIST* p ) { /* No init needed */ }
- static HRESULT copy( LPITEMIDLIST* pTo, const PIDLCONNDATA *pFrom )
+ static HRESULT copy( LPITEMIDLIST* pTo, const HOSTPIDL *pFrom )
{
- *pTo = m_PidlManager.Create( pFrom->wszUser, pFrom->wszHost,
- pFrom->wszPath, pFrom->uPort );
- return (*pTo != NULL) ? S_OK : E_OUTOFMEMORY;
+ return m_PidlManager.Create( pFrom->wszLabel, pFrom->wszUser,
+ pFrom->wszHost, pFrom->wszPath, pFrom->uPort, pTo );
}
static void destroy( LPITEMIDLIST* p )
@@ -34,7 +33,7 @@ class CConnCopyPolicy
};
typedef CComEnumOnSTL<IEnumIDList, &IID_IEnumIDList, LPITEMIDLIST,
- CConnCopyPolicy, std::vector<PIDLCONNDATA> >
+ CConnCopyPolicy, std::vector<HOSTPIDL> >
CEnumIDListImpl;
#endif // CONNCOPYPOLICY_H
Oops, something went wrong.

0 comments on commit 2ecfb4b

Please sign in to comment.