[Classes] [Prev] [Next] [Methods]

CFaceWindow

Methods Index

Heritage
Description
Usage
Public Methods
Constructor, Destructor, and Initializer Methods
Register Methods

CFaceWindow


Heritage

Superclass: CWindow

Subclasses: None


Description

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.


Usage

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);


Public Methods

Constructor, Destructor, and Initializer Methods

CFaceWindow (CDocument* theDocument, NNotebook* theNotebook)
CFaceWindow (const CFaceWindow& theFaceWindow)
~CFaceWindow ()
BOOLEAN IWindow ()

Register Methods

virtual void CreateFace(NNotebook* theNotebook, short theTab, short thePage)
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)


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. Inc. All rights reserved.