Not trying to put you off but some problems with your code, probably mostly to do with the fact you are:
A) using out of date code
B) using VC 6
1. You removed some INT and (INT) from areas in the code is VS2k5 they NEED to be there or it wont compile.
(well the INT needs to be there but the the (INT) just throws a data loss warning)
2. You never declared m_szPrevWorkspacePathName in VS 2k5 ALL variables MUST be declared.
3. You overloaded the SaveFtpAccountInfo(); function to SaveFtpAccountInfo(m_szInstallDirectory + "\\cedt.ftp"); but never declared an
4. You changed some ULONGLONG to DW
I suspect that although i am saying "you" in the above i am partially incorrect as some of the above is mostly likely code that was changed by phil in order to update it and its simply you are using the older source code..
Note the attached patch munges the overloaded SaveFtpAccountInfo so it accepts the paramater and does nothing with it..
Can you also please heavily comment your code so that we can see what you are trying to do in each case.
Interestingly your code does allow middle click closing but breaks the double click opening of new tabs..