A class which implementes a CView of a text file. Derived from PyCView and PyCEdit objects.
-
Indicates if the view's document is modified.
-
Loads a named file into the view.
-
Sets the view's document modified flag.
-
Returns the underlying PyCEdit object
-
Calls the underlying MFC PreCreateWindow method.
-
Saves the view to a named file.
-
Calls the standard Python framework OnCommand handler
PyCEditView.GetEditCtrl
PyCEditCtrl
= GetEditCtrl() returns the underlying edit control object.
PyCEditView.IsModified
int = IsModified() Indicates if the view's document has the modified flag set.
PyCEditView.LoadFile
LoadFile(fileName) Loads a file into the view.
-
fileName : string
The name of the file to be loaded.
PyCEditView.OnCommand
OnCommand(wparam, lparam) Calls the standard Python framework OnCommand handler
-
wparam : int
-
lparam : int
- PyCWnd.OnCommand virtual method
PyCEditView.PreCreateWindow
tuple = PreCreateWindow(createStruct) Calls the underlying MFC PreCreateWindow method.
-
createStruct : tuple
A tuple representing a CREATESTRUCT structure.
PyCEditView.SaveFile
SaveFile(fileName) Saves the view to a file.
-
fileName : string
The name of the file to be written.
PyCEditView.SetModifiedFlag
SetModifiedFlag(bModified) Sets the modified flag for the view's document.
-
bModified=1 : int
The modified state to set.