neoWidgets
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Control.h
1 #ifndef NEO_CONTROL_H
2 #define NEO_CONTROL_H
3 
4 namespace neo
5 {
6 
11 {
12 public:
13  ControlParam();
14 
19  ControlParam& Style(DWORD style);
23  ControlParam& ExStyle(DWORD exStyle);
28  ControlParam& Id(int id);
29 
30  ControlParam& WindowMode(NEO_WINDOW_MODE mode);
31 
32  ControlParam& AddStyle(DWORD style);
33 
34  DWORD GetStyleOrDefault(DWORD defStyle) const;
35  DWORD GetExStyleOrDefault(DWORD defStyle) const;
36  DWORD GetIdOrDefault() const;
37  NEO_WINDOW_MODE GetWindowModeOrDefault() const;
38 
39  ControlParam& StaticCtrl_Left();
40  ControlParam& StaticCtrl_HCenter();
41  ControlParam& StaticCtrl_Right();
42  ControlParam& StaticCtrl_VCenter();
43 
44  ControlParam& TextBox_MultiLine();
45 
46  ControlParam& ComboBox_DropDown();
47  ControlParam& ComboBox_DropDownList();
48 
49  ControlParam& ScrollBar_Horizontal();
50  ControlParam& ScrollBar_Vertical();
51 
52  ControlParam& ListCtrl_List();
53  ControlParam& ListCtrl_Icon();
54  ControlParam& ListCtrl_SmallIcon();
55  ControlParam& ListCtrl_Report();
56 private:
57  DWORD _style;
58  DWORD _exStyle;
59  int _id;
60  NEO_WINDOW_MODE _mode;
61 
62  bool _styleSet;
63  bool _exStyleSet;
64  bool _idSet;
65  bool _modeSet;
66 };
67 
73 class Control : public WindowBase
74 {
75 public:
76  Control();
77 
78  void Create(HWND parent,
79  const tstring& clsName,
80  const tstring& text,
81  const Rect& r,
82  DWORD style,
83  DWORD exStyle,
84  int id,
85  NEO_WINDOW_MODE mode);
86 };
87 
88 } // namespace neo
89 
90 #endif
The big window class that every other class descends from.
Definition: WindowBase.h:152
Base class for standard Windows controls.
Definition: Control.h:73
Holds optional control parameters.
Definition: Control.h:10
ControlParam & ExStyle(DWORD exStyle)
Definition: Control.inl:26
ControlParam & Id(int id)
Definition: Control.inl:33
Windows RECT structure with constructor.
Definition: Rect.h:108
NEO_WINDOW_MODE
Definition: neo.h:23
ControlParam & Style(DWORD style)
Definition: Control.inl:19