bgiLoadRichTextFile

Loads RTF (Rich Text Format) file into rich text box with formatting. Takes richTextBoxID (Int) and filepath (String). Returns 0 if file open fails.

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int
filepath String

Returns

Int

Quick Summary

Loads RTF (Rich Text Format) file into rich text box with formatting. Takes richTextBoxID (Int) and filepath (String). Returns 0 if file open fails.

Technical Exegesis...

Loads an RTF (Rich Text Format) file into a rich text box, preserving all formatting. Searches gizmoMap for the rich text box ID. Converts filepath from UTF-8 to wide string. Opens file with CreateFileW (GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING). Returns 0 if file open fails. Creates EDITSTREAM structure with file handle and RTFLoadCallback function pointer. Sends EM_STREAMIN message with SF_RTF flag to stream RTF content. Closes file handle.

Example

Example.bam
; No example implemented yet