A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.
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?
This article describes how to customize the dialog: http://msdn2.microsoft.com/en-us/library/ms646960.aspx
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
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz