Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange effect Pin
Arjan Schouten9-Jan-05 23:05
Arjan Schouten9-Jan-05 23:05 
GeneralRe: Strange effect Pin
RChin9-Jan-05 23:07
RChin9-Jan-05 23:07 
GeneralRe: Strange effect Pin
LiYS9-Jan-05 23:09
LiYS9-Jan-05 23:09 
General'Open' Dialog Pin
mcsherry9-Jan-05 22:12
mcsherry9-Jan-05 22:12 
GeneralRe: 'Open' Dialog Pin
toxcct9-Jan-05 22:16
toxcct9-Jan-05 22:16 
GeneralRe: 'Open' Dialog Pin
FlyingTinman12-Jan-05 12:32
FlyingTinman12-Jan-05 12:32 
GeneralRe: 'Open' Dialog Pin
Arjan Schouten9-Jan-05 22:43
Arjan Schouten9-Jan-05 22:43 
GeneralRe: 'Open' Dialog Pin
mcsherry10-Jan-05 1:09
mcsherry10-Jan-05 1:09 
cheers Arjan,
I've got the SHBrowseForFolder working, however I can't do the 'fiddling' in the callback function as the user doesn't select the files straight away.
I've investigated this a bit further and I've found a solution in the CFileDialog class on the m_ofn structure, on this we can set the Flag variable to 'OFN_NOCHANGEDIR' which according to MSDN

"Restores the current directory to its original value if the user changed the directory while searching for files.
Windows NT 4.0/2000/XP: This flag is ineffective for GetOpenFileName."

unfortunately I'm working on XP so I can't use this, so what I'm going to do is manually go through the selected directory get a list of all files which are of the right type and then populate a list box with these files. A Bit long winded but at present I don't have any other ideas.

If you have any ideas or comments on this please let me know,

thanks,
Andy

Generalatomic clock and time zone programming Pin
mr_mark_hewitt9-Jan-05 21:44
mr_mark_hewitt9-Jan-05 21:44 
GeneralRe: atomic clock and time zone programming Pin
Mike Dimmick10-Jan-05 1:29
Mike Dimmick10-Jan-05 1:29 
GeneralRe: atomic clock and time zone programming Pin
mr_mark_hewitt10-Jan-05 2:28
mr_mark_hewitt10-Jan-05 2:28 
GeneralRe: atomic clock and time zone programming Pin
David Crow11-Jan-05 10:42
David Crow11-Jan-05 10:42 
GeneralIIS 6 and VC++ 6 Pin
Venkat Eswaran9-Jan-05 19:54
Venkat Eswaran9-Jan-05 19:54 
GeneralRe: IIS 6 and VC++ 6 Pin
Mike Dimmick9-Jan-05 23:07
Mike Dimmick9-Jan-05 23:07 
GeneralVC++ Dialog Control Pin
phijophlip9-Jan-05 19:09
phijophlip9-Jan-05 19:09 
GeneralRe: VC++ Dialog Control Pin
Monty29-Jan-05 20:44
Monty29-Jan-05 20:44 
GeneralRe: VC++ Dialog Control Pin
FlyingTinman12-Jan-05 12:45
FlyingTinman12-Jan-05 12:45 
GeneralPass paramters to an application while openning a file Pin
ytod9-Jan-05 15:44
ytod9-Jan-05 15:44 
GeneralRe: Pass paramters to an application while openning a file Pin
ThatsAlok9-Jan-05 17:21
ThatsAlok9-Jan-05 17:21 
GeneralRe: Pass paramters to an application while openning a file Pin
ytod9-Jan-05 18:40
ytod9-Jan-05 18:40 
GeneralRe: Pass paramters to an application while openning a file Pin
Anonymous9-Jan-05 19:33
Anonymous9-Jan-05 19:33 
GeneralRe: Pass paramters to an application while openning a file Pin
ThatsAlok9-Jan-05 20:23
ThatsAlok9-Jan-05 20:23 
GeneralNeed some help Pin
Member 16182599-Jan-05 15:20
Member 16182599-Jan-05 15:20 
GeneralRe: Need some help Pin
ytod9-Jan-05 15:54
ytod9-Jan-05 15:54 
GeneralPointer to an object in a std::list Pin
Jordan C. Atlas9-Jan-05 13:25
Jordan C. Atlas9-Jan-05 13:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.