My Project
Public Member Functions | List of all members
Combobox Class Reference

Combobox interface class Provide interface for creating/removing/updating combobox. More...

#include "interface/combobox.h"

Inheritance diagram for Combobox:
Inheritance graph
[legend]
Collaboration diagram for Combobox:
Collaboration graph
[legend]

Public Member Functions

 Combobox ()
 
 Combobox (int ID)
 
 Combobox (int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT=NULL)
 
 ~Combobox ()
 
HWND create (int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT) override
 
void addItem (WCHAR *item)
 
int getCurrentItem ()
 
HWND getHWND ()
 
void remove () override
 
- Public Member Functions inherited from BaseInterfaceCtrl
 BaseInterfaceCtrl ()
 
 BaseInterfaceCtrl (HWND hWnd, HINSTANCE hInst)
 
 ~BaseInterfaceCtrl ()
 

Additional Inherited Members

- Static Protected Attributes inherited from BaseInterfaceCtrl
static HWND hWnd
 
static HINSTANCE hInst
 

Detailed Description

Combobox interface class Provide interface for creating/removing/updating combobox.

Definition at line 24 of file combobox.h.

Constructor & Destructor Documentation

§ Combobox() [1/3]

Combobox::Combobox ( )

Empty constructor. No action.

Definition at line 5 of file combobox.cpp.

§ Combobox() [2/3]

Combobox::Combobox ( int  ID)

Constructor sets ID in 'id' variable

Parameters
[in]IDUnique identify of combobox

Definition at line 10 of file combobox.cpp.

§ Combobox() [3/3]

Combobox::Combobox ( int  X,
int  Y,
int  HEIGHT,
int  WIDTH,
WCHAR *  TEXT = NULL 
)

Constructor create and display combobox

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

Definition at line 15 of file combobox.cpp.

Here is the call graph for this function:

§ ~Combobox()

Combobox::~Combobox ( )

Destructor. Removes button (Does not free memory)

Definition at line 20 of file combobox.cpp.

Member Function Documentation

§ addItem()

void Combobox::addItem ( WCHAR *  item)

Definition at line 44 of file combobox.cpp.

Here is the caller graph for this function:

§ create()

HWND Combobox::create ( int  X,
int  Y,
int  HEIGHT,
int  WIDTH,
WCHAR *  TEXT 
)
overridevirtual

Create and display combobox

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

Implements BaseInterfaceCtrl.

Definition at line 25 of file combobox.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ getCurrentItem()

int Combobox::getCurrentItem ( )

Definition at line 53 of file combobox.cpp.

Here is the caller graph for this function:

§ getHWND()

HWND Combobox::getHWND ( )

Definition at line 58 of file combobox.cpp.

§ remove()

void Combobox::remove ( )
overridevirtual

Removes combobox (Does not free memory)

Implements BaseInterfaceCtrl.

Definition at line 63 of file combobox.cpp.


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