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

CWindowFactory

Methods Index

Heritage
Description
Usage
Public Methods
Protected Methods

CWindowFactory


Heritage

Superclass: None

Subclass: CWindowFactoryDefault


Description

This is the abstract factory used by CWindow.


Usage

#include PwrFactoryDef_i
...
CMouseManager* aMouseManager = WINDOW_FACTORY->
ConstructMouseMgr();
Then install an instance of this factory into the factory manager as soon as the manager is created, within CApplication::InstallFactories(...)

void CMyApplication::InstallFactories(CFactoryMgr* mgr)
{
CApplication::InstallFactories(mgr);
itsMyWindowFactory = new CMyWindowFactory;
mgr->AddFactory(kWindowFactoryTypeId,
itsMyWindowFactory);
}
And then remember to delete the factory after it is no longer used, because the factory manager will not delete it for you.

void CMyApplication::ShutDown()
{
CApplication::ShutDown();
delete itsMyWindowFactory;
}

Public Methods

virtual CMouseManager* ConstructMouseManager(
CWindow*, CMouseManager* theParent);
virtual CNavigator* ConstructNavigator(CWindow*);
virtual NWinScrollBar* ConstructHorizScrollBar(CWindow*);
virtual NWinScrollBar* ConstructVertScrollBar(CWindow*);
virtual ~CWindowFactory();

Protected Methods

CWindowFactory();


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

support@xvt.com


Visit our online help desk for tech support

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