Does anyone know how to show the files in an OpenDialog() so they appear sorted by creation date?
Any advice would be greatly appreciated.
Kuno
Kuno,
Add the following to your app:
define FCIDM_SHVIEW_LARGEICON := 0x7029
define FCIDM_SHVIEW_LIST := 0x702B
define FCIDM_SHVIEW_REPORT := 0x28716
define FCIDM_SHVIEW_SMALLICON := 0x702A
define FCIDM_SHVIEW_THUMBNAIL := 0x702D
define FCIDM_SHVIEW_TILE := 0x702E
define ByAttributes := 0x7609
define ByDateCreated := 0x7607
define ByDateModified := 0x7606
METHOD Dispatch(oEvt, hDlg) CLASS OpenDialogThank you Jamal!!
LOCAL hHandle as PTR
IF oEvt:message = 78
hHandle := FindWindowEx(hDlg , 0, String2Psz("SHELLDLL_DefView"),String2Psz(""))
SendMessage( hHandle, WM_COMMAND, FCIDM_SHVIEW_REPORT, 0 )
// SendMessage( h1, WM_COMMAND, FCIDM_SHVIEW_LARGEICON, 0 )
SendMessage( hHandle, WM_COMMAND, ByDateCreated, 0 )
ENDIF
RETURN 0L
Jamal
On 1/20/2022 11:28 AM, Kuno Egger wrote:
Does anyone know how to show the files in an OpenDialog() so they appear sorted by creation date?
Any advice would be greatly appreciated.
Kuno
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (3 / 13) |
Uptime: | 51:22:55 |
Calls: | 6,690 |
Calls today: | 8 |
Files: | 12,225 |
Messages: | 5,344,713 |
Posted today: | 1 |