TE Edit Control Win32 / Win64 Help
Product page

TerSetDefDir

Set the default directory and file type.

BOOL TerSetDefDir(hWnd, dir, type)
HWND hWnd;The handle of the window to be accessed.
LPBYTE dir;The default directory. Set to "" to use the program directory.
int type;Input file type:
SAVE_TER:
Native file (.sse or .ter)
SAVE_RTF:RTF file
SAVE_DOCXDOCX format
SAVE_TEXT:Text file
SAVE_UTEXT:
Unicode Text Format (not available in the 16 bit product)

Description: This function is used to set the initial directory and the file type display by the File Open dialog.

Return Value: This function returns TRUE when successful.