| Methods Index |
CNotifierSubclasses: None
CDesktop object manages an application's "workspace" or screen window layout. It keeps track of the state of an application's windows. Every window that is created is put into the desktop.
CDesktop object is instantiated automatically in CGlobalClassLib. You can access the desktop, and even replace it with your own derived version by using CGlobalClassLib GetDesktop and SetDesktop methods. You can also specify a different default desktop creation via the CApplicationFactory interface.
Protected Data Members
Friends
friend class
CDocument;
Public Methods
Constructor, Destructor, and Initializer Methods
CDesktop(CApplication *theApplication);
theApplication).
CDesktop(const CDesktop& theDesktop);
CDesktop& operator=(const CDesktop& theDesktop);
virtual ~CDesktop(void);
virtual void SetFrontWindow(CWindow *theWindow);
theWindow) and sets that window to the front of the window stack.
virtual CWindow* GetFrontWindow(void) const;
virtual int GetNumWindows(void) const;
virtual void PlaceWindow(CWindow *theWindow);
BOOLEAN FindWindow(CWindow *theWindow) const;
BOOLEAN value of TRUE if theWindow is in the desktop and FALSE if it is not.
virtual const RWOrdered GetWindows(void) const;
void AddDialog(CDialog* theDialog);
void RemoveDialog(CDialog* theDialog);
virtual BOOLEAN DoClose(void);
FALSE, the application will not be closed.
CView* GetKeyFocus(void) const;
NULL.
void Closing(CWindow* win);
virtual void AddWindow(CWindow *theWindow);
theWindow to the desktop. Only CDocument objects can access this method, which is called internally.
virtual void RemoveWindow(CWindow *theWindow);
theWindow from the desktop. Only CDocument objects can access this method, which is called internally.
void SetActiveWindow(CWindow *theWindow);
theWindow. It sets this window to an active state, which means that it is the selected window.