03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

class CCoeControl : public CBase<br />

{<br />

public:<br />

...<br />

IMPORT_C virtual void SetContainerWindowL(const CCoeControl&<br />

aContainer);<br />

IMPORT_C void SetContainerWindow(RWindow& aWindow);<br />

IMPORT_C void SetContainerWindow(RBackedUpWindow& aWindow);<br />

...<br />

inline RDrawableWindow* DrawableWindow() const;<br />

...<br />

IMPORT_C TBool OwnsWindow() const;<br />

IMPORT_C TBool IsBackedUp() const;<br />

...<br />

protected:<br />

...<br />

inline RWindow& Window() const;<br />

inline RBackedUpWindow& BackedUpWindow() const;<br />

IMPORT_C void CloseWindow();<br />

IMPORT_C void CreateWindowL();<br />

IMPORT_C void CreateWindowL(const CCoeControl* aParent);<br />

IMPORT_C void CreateWindowL(RWindowTreeNode& aParent);<br />

IMPORT_C void CreateWindowL(RWindowGroup* aParent);<br />

IMPORT_C void CreateBackedUpWindowL(RWindowTreeNode& aParent);<br />

IMPORT_C void CreateBackedUpWindowL(RWindowTreeNode& aParent,<br />

...<br />

protected:<br />

CCoeEnv* iCoeEnv;<br />

...<br />

private:<br />

RDrawableWindow* iWin;<br />

...<br />

};<br />

TDisplayMode aDisplayMode);<br />

The CreateWindowL() functions cause a new window – either standard or backed-up – to<br />

be created.<br />

The SetContainerWindow() functions tell the control to use an existing standard window<br />

or backed-up window. This should be used by controls that are themselves components of a<br />

control associated with the same window. SetContainerWindowL() tells the control to<br />

lodge in an existing control – and hence, ultimately, to use an existing window.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!