NNotebookis the shell that contains the
CFaceWindowthe user interface.
NNotebookdirects the navigation of its enclosure, and navigation to and from the
NNotebookalso 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)
NNotebook (const NNotebook& theNotebook)
BOOLEAN INotebook ()
virtual void DoHit (CONTROL_INFO theCtlInfo)
Tabis selected. This method updates the
NNotebook'ssubnavigator to point to the
CFaceWindowthat represents the top tab and page.
virtual AddPage (short theTab, short thePage, const CStringRW& theTitle)
virtual AddTab (short theTab, const CStringRW& theTitle, CImage theTabImage)
virtual const CStringRW GetTitle (void) const;
virtual CFaceWindow* GetFace (short theTab, short thePage)
virtual CFaceWindow* GetFacePage (CFaceWindow* theFace, short* theTab, short* thePage)
virtual CFaceWindow* GetFrontPage (short* theTab, short* thePage)
virtual CStringRW GetPageTitle (short theTab, short thePage) const
virtual CStringRW GetTabTitle (short theTab) const
virtual CImage GetTabImage (short theTab)
virtual short GetNumPages (short theTab)
virtual short GetNumTabs ()
virtual void RemovePage (short theTab, short thePage)
virtual void RemoveTab (short theTab)
virtual void SetFace (CFaceWindow* theFace, short theTab, short thePage, long theId)
CFaceWindowto a particular tab and page in a notebook.
theIdrepresents the resource id of the face window, otherwise
virtual void SetPageTitle (short theTab, short thePage, CStringRW theTitle)
virtual void SetFrontPage (short theTab, short thePage)
CFaceWindowasscoiated the the tab and page will be made visible.
virtual void SetTabTitle (short theTab, CStringRW theTitle)
virtual void SetTabImage (short theTab, CImage theImage)
virtual void SetTabHotKey (short theTab, short thePage, const CKey& theKey)
CFaceWindowassociated with the tab and page will become visible.
virtual CNavigator* GetNavigator ()