The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

How to switch common XP file open dialog into Large-icons view?

The target is to switch common XP file open dialog into Large-icons view from my code, not from user interface. I need this to automatically allow image preview. 

I can find window handle of "SysListView32" by using FindWindowEx(), and then send message LVM_SETVIEW. But I can switch view into anything but Large-icons (with image preview) using provided WParam:

LV_VIEW_ICON = 0
LV_VIEW_DETAILS = 1
LV_VIEW_SMALLICON = 2
LV_VIEW_LIST = 3
LV_VIEW_TILE = 4
LV_VIEW_MAX = 4

Can u advice some other way how to do it?
Andrew Shkuropiy Send private email
Sunday, July 08, 2007
 
 
This article describes how to customize the dialog: http://msdn2.microsoft.com/en-us/library/ms646960.aspx
FGP
Sunday, July 08, 2007
 
 
Solution founded! Some undocumented behaviour from Microsoft ShellAPI. Simply need to send WM_COMMAND message to "SHELLDLL_DefView" (child window of dialog's HWND) with one of that WParam:

SHVIEW_ICON = &H7029
SHVIEW_LIST = &H702B
SHVIEW_REPORT = &H702C
SHVIEW_THUMBNAIL = &H702D
SHVIEW_TILE = &H702E

founded here:
http://vbnet.mvps.org/index.html?code/hooks/fileopensavedlghooklvview.htm
Shkuropiy Andrew Send private email
Monday, July 09, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz