| Methods Index |
CNativeViewSubclasses: None
NNotebook is the shell that contains the CFaceWindow the user interface. NNotebook directs the navigation of its enclosure, and navigation to and from the CFaceWindow. NNotebook also handles the Tab to Tab and Tab hot key navigation.
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);
NNotebook (CSubview *theEnclosure, const CRect& theRegion)
theRegion and parented to theEnclosure.NNotebook (const NNotebook& theNotebook)
~NNotebook ()
BOOLEAN INotebook ()
virtual void DoHit (CONTROL_INFO theCtlInfo)
Tab is selected. This method updates the NNotebook's subnavigator to point to the CFaceWindow that represents the top tab and page.
virtual AddPage (short theTab, short thePage, const CStringRW& theTitle)
theTitle. Page titles are never displayed.
virtual AddTab (short theTab, const CStringRW& theTitle, CImage theTabImage)
Tab. theTitle and theImage are set as well.
virtual const CStringRW GetTitle (void) const;
virtual CFaceWindow* GetFace (short theTab, short thePage)
CFaceWindow of a particular tab and page.
virtual CFaceWindow* GetFacePage (CFaceWindow* theFace, short* theTab, short* thePage)
CFaceWindow.
virtual CFaceWindow* GetFrontPage (short* theTab, short* thePage)
CFaceWindow.
virtual CStringRW GetPageTitle (short theTab, short thePage) const
thePage of theTab.
virtual CStringRW GetTabTitle (short theTab) const
theTab's title.
virtual CImage GetTabImage (short theTab)
theTab's image.
virtual short GetNumPages (short theTab)
theTab.
virtual short GetNumTabs ()
virtual void RemovePage (short theTab, short thePage)
CFaceWindow.
virtual void RemoveTab (short theTab)
virtual void SetFace (CFaceWindow* theFace, short theTab, short thePage, long theId)
CFaceWindow to a particular tab and page in a notebook. theId represents the resource id of the face window, otherwise NULL.
virtual void SetPageTitle (short theTab, short thePage, CStringRW theTitle)
virtual void SetFrontPage (short theTab, short thePage)
CFaceWindow asscoiated the the tab and page will be made visible.
virtual void SetTabTitle (short theTab, CStringRW theTitle)
virtual void SetTabImage (short theTab, CImage theImage)
Tab's title is displayed to the right of this image.
virtual void SetTabHotKey (short theTab, short thePage, const CKey& theKey)
CFaceWindow associated with the tab and page will become visible.
virtual CNavigator* GetNavigator ()
CFaceWindow.