| Methods Index |
Superclass: CWindow
Subclasses: None
CFaceWindow is a type of CWindow that provides the user interface to a notebook object. The major difference between CFaceWindow and CWindow is this: a CFaceWindow can be contained within an NNotebook object while CWindow cannot. In general, CWindows are the top-most view and nested within other CWindows. The NNotebook is not set as the enclosure for the CFaceWindow. Yet, at the PTK layer, the face window is parented to the notebook window. Another unique point about CFaceWindows is that the PTK window for the CFaceWindow is not set until the NNotebook->SetFace method is called.
NNotebook *aNotebook = new NNotebook (theParentWindow, theCRectSize);
CFaceWindow* aFace = new CFaceWindow (theDocument, aNotebook);
aNotebook->AddTab (theTabNum, theTitle);
aNotebook->AddPage (theTabNum, thePageNum, theTitle);
aNotebook->SetFace (aFace, theTabNum, thePageNum);
NButton* aButton = new NButton (aFace, aRect, aCStringRW);
CFaceWindow (CDocument* theDocument, NNotebook* theNotebook)
CFaceWindow for theNotebook. itsXVTWindow is NULL after creation of the CFaceWindow.
CFaceWindow (const CFaceWindow& theFaceWindow)
~CFaceWindow ()
BOOLEAN IWindow ()
TRUE if successful.
virtual void CreateFace(NNotebook* theNotebook, short theTab, short thePage)
CFaceWindow. itsXVTWindow is set during this method. CreateFace is called by NNotebook->SetFace.
virtual void CreateFace(NNotebook* theNotebook, short theTab, short thePage, long theId)
virtual void DoCommand( long theCommand, void* theData=NULL)
virtual NNotebook* GetNotebook(void)
virtual void Draw(const CRect& theClippingRegion)