My Project
Public Member Functions | Static Protected Attributes | List of all members
BaseInterfaceCtrl Struct Referenceabstract

Each element (button, editfield etc) has own structure. More...

#include "interface/interface.h"

Inheritance diagram for BaseInterfaceCtrl:
Inheritance graph
[legend]

Public Member Functions

 BaseInterfaceCtrl ()
 
 BaseInterfaceCtrl (HWND hWnd, HINSTANCE hInst)
 
 ~BaseInterfaceCtrl ()
 
virtual HWND create (int X=0, int Y=0, int HEIGHT=0, int WIDTH=0, WCHAR *TEXT=NULL)=0
 
virtual void remove ()=0
 

Static Protected Attributes

static HWND hWnd
 
static HINSTANCE hInst
 

Detailed Description

Each element (button, editfield etc) has own structure.

Definition at line 23 of file interface.h.

Constructor & Destructor Documentation

§ BaseInterfaceCtrl() [1/2]

BaseInterfaceCtrl::BaseInterfaceCtrl ( )

Empty constructor. No action.

Definition at line 8 of file interface.cpp.

§ BaseInterfaceCtrl() [2/2]

BaseInterfaceCtrl::BaseInterfaceCtrl ( HWND  hWnd,
HINSTANCE  hInst 
)

Constructor fills static variables HWND and HINSTANCE.

Parameters
[in]hWndHWND of main (parent) window
[in]hInstGlobal instance

Definition at line 13 of file interface.cpp.

§ ~BaseInterfaceCtrl()

BaseInterfaceCtrl::~BaseInterfaceCtrl ( )

Destructor. No action.

Definition at line 19 of file interface.cpp.

Member Function Documentation

§ create()

virtual HWND BaseInterfaceCtrl::create ( int  X = 0,
int  Y = 0,
int  HEIGHT = 0,
int  WIDTH = 0,
WCHAR *  TEXT = NULL 
)
pure virtual

Creating interface element. Virtual.

Parameters
[in]XX coordinate
[in]YY coordinate
[in]HEIGHTHeight of the window
[in]WIDTHWidth of the window
[in]TEXTText which is displaying on element
Returns
HWND of created window

Implemented in InterfaceCtrlInit, Button, Combobox, and Editfield.

§ remove()

virtual void BaseInterfaceCtrl::remove ( )
pure virtual

Will destroy item. Function does not free memory.

Implemented in InterfaceCtrlInit, Editfield, Button, and Combobox.

Member Data Documentation

§ hInst

HINSTANCE BaseInterfaceCtrl::hInst
staticprotected

Global instance

Definition at line 61 of file interface.h.

§ hWnd

HWND BaseInterfaceCtrl::hWnd
staticprotected

HWND of main (parent) window

Definition at line 60 of file interface.h.


The documentation for this struct was generated from the following files: