WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Functions
functions.h File Reference

Go to the source code of this file.

Functions

Button CreateButton (HWND parent, const tstring &text, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
Button CreateCheckBox (HWND parent, const tstring &text, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
ComboBox CreateComboBox (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=CBS_DROPDOWNLIST|WS_VSCROLL)
 
HWND CreateControl (HWND parent, const tstring &className, const tstring &text, int id, int x, int y, int w, int h, DWORD addStyle, DWORD addExStyle)
 
HWND CreateDateTimePicker (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
Edit CreateEdit (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=ES_AUTOHSCROLL)
 
Button CreateGroupBox (HWND parent, const tstring &text, int x, int y, int w, int h, DWORD addStyle=0)
 
ListBox CreateListBox (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=WS_VSCROLL|LBS_NOTIFY)
 
ListView CreateListView (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
ProgressBar CreateProgressBar (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
Button CreateRadioButton (HWND parent, const tstring &text, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
ScrollBar CreateScrollBar (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=SBS_HORZ)
 
StaticCtrl CreateStatic (HWND parent, const tstring &text, int x, int y, int w, int h, DWORD addStyle=0)
 
StatusBar CreateStatusBar (HWND parent, DWORD addStyle=0)
 
TabCtrl CreateTabControl (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
TreeView CreateTreeView (HWND parent, int id, int x, int y, int w, int h, DWORD addStyle=0)
 
void UpdateScrollPos (HWND window, UINT message, WPARAM wp, LPARAM lp)
 

Detailed Description

Author
Freddy Herzog

Function Documentation

Button CreateButton ( HWND  parent,
const tstring text,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a button control with minimal effort.

Button CreateCheckBox ( HWND  parent,
const tstring text,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a checkbox control with minimal effort.

ComboBox CreateComboBox ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = CBS_DROPDOWNLIST|WS_VSCROLL 
)
inline

Create a combobox control with minimal effort.

HWND CreateControl ( HWND  parent,
const tstring className,
const tstring text,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle,
DWORD  addExStyle 
)
inline

Basic function to create a window control. The styles WS_CHILD|WS_VISIBLE are added automatically.

HWND CreateDateTimePicker ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a date time picker.

Note
Include "Commctrl.h"
Edit CreateEdit ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = ES_AUTOHSCROLL 
)
inline

Create a edit control control with minimal effort.

Button CreateGroupBox ( HWND  parent,
const tstring text,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a groupbox control with minimal effort.

ListBox CreateListBox ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = WS_VSCROLL|LBS_NOTIFY 
)
inline

Create a listbox control with minimal effort.

ListView CreateListView ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a list view control.

Note
Include "Commctrl.h"
ProgressBar CreateProgressBar ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a progress bar.

Note
Include "Commctrl.h"
Button CreateRadioButton ( HWND  parent,
const tstring text,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a radiobutton control with minimal effort.

ScrollBar CreateScrollBar ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = SBS_HORZ 
)
inline

Create a scrollbar control with minimal effort.

StaticCtrl CreateStatic ( HWND  parent,
const tstring text,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a static control with minimal effort.

StatusBar CreateStatusBar ( HWND  parent,
DWORD  addStyle = 0 
)
inline

Create a status bar.

It automatically attaches itself the window, so no position parameters are needed. When the window size changes, call MoveWindow(hwndStatus, 0, 0, 0, 0, TRUE).

Note
Include "Commctrl.h"
TabCtrl CreateTabControl ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a tab control.

Note
Include "Commctrl.h"
TreeView CreateTreeView ( HWND  parent,
int  id,
int  x,
int  y,
int  w,
int  h,
DWORD  addStyle = 0 
)
inline

Create a tree view control.

Note
Include "Commctrl.h"
void UpdateScrollPos ( HWND  window,
UINT  message,
WPARAM  wp,
LPARAM  lp 
)
inline

Standard handling of WM_HSCROLL and WM_VSCROLL messages.

Note
this only ensures that the scrollbar works correctly. You still need to query the changed scrolling position, and call ScrollWindow() for example.