Note::Create

Description

Create a new Notes window.

Syntax

BOOL Create( int nOption = CREATE_VISIBLE, LPCSTR lpcszFilePathName = NULL )

Parameters

nOption
[input]Standard Origin window create options including
CREATE_VISIBLE - creates a visible Notes page (window)
CREATE_HIDDEN - creates a hidden Notes page
lpcszFilePathName
[input]Optional full path and name of the text file to load into the new Notes page. If NULL, an empty page is created.

Return

Returns TRUE on successful exit and FALSE on failure.

Examples

EX1

int Note_Create_ex1()
{
    Note note; 
    note.Create();            // Create a new empty Notes window
    if( note.IsValid() )
    {
        note.Text = "This is a bunch of text\nI want to write out to an\nOrigin Note window.";
    }
    return 0;
}

Remark

Create a new empty Notes window (page) or a new Notes window with the contents of the sepcified text file.

See Also

header to Include

origin.h