Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ScrollView control
[Standard controls]

Modules

Data Structures

Defines

Typedefs

Functions


Detailed Description

Scrollview control is a scrollable window, which has a visible area and normally a larger content area, user can browse content area using scrollbar. Contents of the content area is totally user-defined, you can add controls in it, add customed listed items, or anything you want.

In fact, you can build a control needing scrolled window support on scrollview.


Define Documentation

#define CTRL_SCROLLVIEW   ("scrollview")
 

The class name of scrollview control, uses this name to create a scrollable window that consists of items.

Definition at line 59 of file scrollview.h.

#define CTRL_SCROLLWND   ("scrollwnd")
 

The class name of scrollwnd control, uses this name to create a scrollable window to which you can add controls.

Definition at line 67 of file scrollview.h.


Typedef Documentation

typedef struct _CONTAINERINFO CONTAINERINFO
 

Structure which defines a container.

typedef GHANDLE HSVITEM
 

Scrollview item object, use this handle to access a scrollview item

Definition at line 75 of file scrollview.h.

typedef CONTAINERINFO* PCONTAINERINFO
 

Data type of pointer to a CONTAINERINFO

Definition at line 97 of file scrollview.h.

typedef SVITEMINFO* PSVITEMINFO
 

Data type of pointer to a SVITEMINFO

Definition at line 197 of file scrollview.h.

typedef SVITEMOPS* PSVITEMOPS
 

Data type of pointer to a SVITEMOPS

Definition at line 184 of file scrollview.h.

typedef int(* SVITEM_CMP)(HSVITEM hsvi1, HSVITEM hsvi2)
 

Type of the scrollview item compare function.

Definition at line 171 of file scrollview.h.

typedef void(* SVITEM_DESTROYFUNC)(HWND hWnd, HSVITEM hsvi)
 

Type of the scrollview item destroy callback procedure.

Parameters:
hWnd Handle of the scrollview control .
hsvi Scrollview item handle.

Definition at line 154 of file scrollview.h.

typedef void(* SVITEM_DRAWFUNC)(HWND hWnd, HSVITEM hsvi, HDC hdc, RECT *rcDraw)
 

Type of the scrollview item drawing callback procedure.

Parameters:
hWnd Handle of the scrollview control.
hsvi Scrollview item handle.
hdc Drawing device context.
rcDraw Drawing rect area.

Definition at line 165 of file scrollview.h.

typedef void(* SVITEM_INITFUNC)(HWND hWnd, HSVITEM hsvi)
 

Type of the scrollview item initialization callback procedure.

Parameters:
hWnd Handle of the scrollview control .
hsvi Scrollview item handle.
Returns:
Zero on success; otherwise -1.

Definition at line 145 of file scrollview.h.

typedef struct _SCROLLVIEWITEMINFO SVITEMINFO
 

Structure of the scrollview item info

typedef struct _svitem_operations SVITEMOPS
 

Structure of item operations


Function Documentation

MG_EXPORT int GUIAPI DefaultContainerProc HWND  hWnd,
int  message,
WPARAM  wParam,
LPARAM  lParam
 

Default container window procedure

See also:
DefaultDialogProc

DWORD mglist_get_item_adddata GHANDLE  hi  ) 
 

Use this to get additional data from a list item in a control, such as scrollview and iconview.

DWORD scrollview_get_item_adddata HSVITEM  hsvi  ) 
 

Use this to get additional data from scrollview item.

int scrollview_get_item_index HWND  hWnd,
HSVITEM  hsvi
 

To get item index.

int scrollview_is_item_hilight HWND  hWnd,
HSVITEM  hsvi
 

To decide whether an item is the current hilighted item.

int scrollview_is_item_selected HSVITEM  hsvi  ) 
 

To decide whether an item is a selected.

int scrollview_set_item_height HWND  hWnd,
HSVITEM  hsvi,
int  height
 

Sets the height of an item.


Generated on Mon Jun 26 14:21:37 2006 for MiniGUI V2.0.3 API Reference by  doxygen 1.4.2