My Project
combobox.h
Go to the documentation of this file.
1 
12 #pragma once
13 #include <windowsx.h>
14 
15 #include "interface.h"
16 class BaseInterfaceCtrl;
17 
25 {
26 public:
28  Combobox();
29 
34  Combobox(int ID);
35 
44  Combobox(int X, int Y, int HEIGHT, int WIDTH, WCHAR* TEXT = NULL);
45 
49  ~Combobox();
50 
60  HWND create(int X, int Y, int HEIGHT, int WIDTH, WCHAR* TEXT) override;
61 
62  void addItem(WCHAR* item);
63 
64  int getCurrentItem();
65 
66  HWND getHWND();
67 
71  void remove() override;
72 
73 private:
74  int ID;
75  HWND chWnd = NULL;
76 };
Each element (button, editfield etc) has own structure.
Definition: interface.h:23
int getCurrentItem()
Definition: combobox.cpp:53
Combobox()
Definition: combobox.cpp:5
Common draw interface class.
HWND create(int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT) override
Definition: combobox.cpp:25
Combobox interface class Provide interface for creating/removing/updating combobox.
Definition: combobox.h:24
HWND getHWND()
Definition: combobox.cpp:58
void addItem(WCHAR *item)
Definition: combobox.cpp:44
~Combobox()
Definition: combobox.cpp:20