frView
#include <Files.h>
typedef struct DInfo { Size Offset Description Rect frRect; 8 0 Size and location for folder's window short frFlags; 2 8 Bit flags (fOnDesk, et al.) See FInfo Point frLocation; 4 10 Top-left corner for folder's icon short frView; 2 14 Folder view
Notes: A DInfo structure named ioDrUsrWds is embedded in the DirInfo structure obtained by PBGetCatInfo and field values in it can be set via The frFlags field has the same layout as the fdFlags in an FInfo structure. Many of the bits don't apply to directories, but fOnDesk and fInvisible do
The frRect field identifies where the folder's window goes when the folder
is opened. Additional information is found in the FXInfo structure. The content of the frView field is not documented, the high byte of this field
is one of:
1 By Icon
2 By Name
3 By Date
4 By Size
5 By Kind
6 By Color
Since the Finder performs its own internal caching, changes made to these
fields may not be noticed for some time (you may need to use the Finder's
Get Info command or manually close and reopen the the folder). Also, when
the Finder ejects a disk, it may overwrite your changes anyway.