Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

C_Combo_List Class Reference

Class used for the utilisation of combo box control. More...

#include <C_Combo_List.h>


Public Member Functions

 C_Combo_List (void)
 The constructor.

 ~C_Combo_List (void)
 The Destructor.

void Link (HWND hwnd)
 Associate the class to the Combo box.

void Clear (void)
 Clear the combo box.

void ClearEdit (void)
 Clear the edit field of the combo box.

void AddItem (char *String)
 Add an item into the list.

char * GetText ()
 Get selected text.

int GetSelectedItem ()
 Get the index of the selected item in the droplist.

void SetPosition (int x, int y, int cx, int cy)
 Set the position of the Combo box.

void SetSelection (char *Text)
 Set the selected text in the combo box.

void SetSelection (int index)
 Set The selected item in the combo box.


Detailed Description

Class used for the utilisation of combo box control.

If you need to use the combo box, use this class (modify it if you need)


Constructor & Destructor Documentation

C_Combo_List::C_Combo_List void   ) 
 

The constructor.

Do nothing

C_Combo_List::~C_Combo_List void   ) 
 

The Destructor.

Do nothing


Member Function Documentation

void C_Combo_List::AddItem char *  String  ) 
 

Add an item into the list.

Parameters:
String Pointer to a string wich contain the text to display

void C_Combo_List::Clear void   ) 
 

Clear the combo box.

Erase all the item into the list and clear the edit field

void C_Combo_List::ClearEdit void   ) 
 

Clear the edit field of the combo box.

Clear the edit but don't destroy the item list

int C_Combo_List::GetSelectedItem  ) 
 

Get the index of the selected item in the droplist.

Returns:
The index of the item in the combo box

char * C_Combo_List::GetText  ) 
 

Get selected text.

Return the text wich is in the Edit Field The selected text

void C_Combo_List::Link HWND  hwnd  ) 
 

Associate the class to the Combo box.

You MUST use Link before use any other members of the class

Parameters:
@param hwnd handle to the Combo box

void C_Combo_List::SetPosition int  x,
int  y,
int  cx,
int  cy
 

Set the position of the Combo box.

you must use it to get the dropdown (to set an important eigth)

Parameters:
x position horizontal of the left-upper corner of the control
y position vertical of the left-upper corner of the control
cx Width of the control
cy Eigth of the control

void C_Combo_List::SetSelection int  index  ) 
 

Set The selected item in the combo box.

Parameters:
index Index of the item to select

void C_Combo_List::SetSelection char *  Text  ) 
 

Set the selected text in the combo box.

If the text is not in the list, a null string is showned

Parameters:
Text text to find


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 15:19:54 2003 for Sub Station Beta by doxygen1.3