bgiSaveRichTextFile

Saves rich text box content to RTF file with all formatting preserved. Takes richTextBoxID (Int) and filepath (String). Returns 0 if file creation fails.

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int
filepath String

Returns

Int

Quick Summary

Saves rich text box content to RTF file with all formatting preserved. Takes richTextBoxID (Int) and filepath (String). Returns 0 if file creation fails.

Technical Exegesis...

Saves the content of a rich text box to an RTF (Rich Text Format) file, preserving all formatting. Searches gizmoMap for the rich text box ID. Converts filepath from UTF-8 to wide string. Creates file with CreateFileW (GENERIC_WRITE, CREATE_ALWAYS) - overwrites if exists. Returns 0 if file creation fails. Creates EDITSTREAM structure with file handle and RTFSaveCallback function pointer. Sends EM_STREAMOUT message with SF_RTF flag to stream RTF content to file. Closes file handle.

Example

Example.bam
; No example implemented yet