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

CDesktop

Methods Index

Heritage
Description
Usage
Protected Data Members
Friends
Public Methods
Constructor, Destructor, and Initializer Methods
Desktop Object Methods
Protected Methods
Interaction With CDocument
Interaction With CSwitchBoard

CDesktop


Heritage

Superclass: CNotifier

Subclasses: None


Description

A 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.


Usage

A 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

CApplication *itsApplication; The application to which it belongs
CWindow *itsFrontWindow; The front window
RWOrdered *itsWindowObjects; List of the windows
RWOrdered* itsModalStack; List of modal windows
RWOrdered* itsDialogObjects; List of dialogs

Friends

friend class CDocument;


Public Methods

Constructor, Destructor, and Initializer Methods

CDesktop(CApplication *theApplication);
CDesktop(const CDesktop& theDesktop);
CDesktop& operator=(const CDesktop& theDesktop);
virtual ~CDesktop(void);

Desktop Object Methods

virtual void SetFrontWindow(CWindow *theWindow);
virtual CWindow* GetFrontWindow(void) const;
virtual int GetNumWindows(void) const;
virtual void PlaceWindow(CWindow *theWindow);
BOOLEAN FindWindow(CWindow *theWindow) const;
virtual const RWOrdered GetWindows(void) const;
void AddDialog(CDialog* theDialog);
void RemoveDialog(CDialog* theDialog);
virtual BOOLEAN DoClose(void);
CView* GetKeyFocus(void) const;
void Closing(CWindow* win);

Protected Methods

Interaction With CDocument

virtual void AddWindow(CWindow *theWindow);
virtual void RemoveWindow(CWindow *theWindow);

Interaction With CSwitchBoard

void SetActiveWindow(CWindow *theWindow);



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

support@xvt.com


Visit our online help desk for tech support

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