mGUtils API Reference  v1.2.0
A component of MiniGUI providing users with a number of common dialog templates
Data Fields
skin_item_s Struct Reference

#include <mgutils.h>

Data Fields

int id
 
DWORD style
 
int x
 
int y
 
RECT item_rc
 
char * tip
 
DWORD attached
 
void * type_data
 
int bmp_index
 
HWND hwnd
 

Detailed Description

Skin item information structure

Definition at line 1305 of file mgutils.h.

Field Documentation

DWORD attached

The attached private data with the item by application.

Definition at line 1410 of file mgutils.h.

int bmp_index

The index of the item bitmap in the skin bitmap array.

Definition at line 1400 of file mgutils.h.

HWND hwnd

The handle to the control if the type is SI_TYPE_CONTROL.

Definition at line 1403 of file mgutils.h.

int id

The identifier of the item.

Definition at line 1308 of file mgutils.h.

RECT item_rc

The hit-test rectangle of the item.

Definition at line 1396 of file mgutils.h.

DWORD style

The style of the item.

The style of an item is composed of five classes of information:

  • The type of an item.
  • The hit-test shape type.
  • The common status.
  • The item specific status.
  • The item specific style.

The type of an item can be one of the following values:

  • SI_TYPE_NRMLABEL
    The item is a normal label.
  • SI_TYPE_BMPLABEL
    The item is a bitmap label.
  • SI_TYPE_CMDBUTTON
    The item is a command button.
  • SI_TYPE_CHKBUTTON
    The item is a check button.
  • SI_TYPE_NRMSLIDER
    The item is a normal slider.
  • SI_TYPE_ROTSLIDER
    The item is a rotation slider.

The hit-test shape type can be one of the following values:

  • SI_TEST_SHAPE_RECT
    The hit-test shape is a rect.
  • SI_TEST_SHAPE_ELLIPSE
    The hit-test shape is an ellipse.
  • SI_TEST_SHAPE_LOZENGE
    The hit-test shape is a lozenge.
  • SI_TEST_SHAPE_LTRIANGLE
    The hit-test shape is a left triangle.
  • SI_TEST_SHAPE_RTRIANGLE
    The hit-test shape is a right triangle.
  • SI_TEST_SHAPE_UTRIANGLE
    The hit-test shape is a up triangle.
  • SI_TEST_SHAPE_DTRIANGLE
    The hit-test shape is a down triangle.

The common status of an item can be OR'ed with the following values:

  • SI_STATUS_OK
    The basic status of an item, always be there.
  • SI_STATUS_VISIBLE
    The item is visble.
  • SI_STATUS_DISABLED
    The item is disabled.
  • SI_STATUS_HILIGHTED
    The item is hilighted.

The item specific status can be one of the following values:

  • SI_BTNSTATUS_CLICKED
    The three-state button is clicked.
  • SI_BTNSTATUS_CHECKED
    The check button is ckecked.

The item specific style can be a valued OR'ed with the following values:

  • SI_NRMSLIDER_HORZ
    The normal slider is horizontal.
  • SI_NRMSLIDER_VERT
    The normal slider is vertical.
  • SI_NRMSLIDER_STATIC
    The normal slider is static, i.e., the slider acts like a progress bar.
  • SI_ROTSLIDER_CW
    The rotation slider is clockwise.
  • SI_ROTSLIDER_ANTICW
    The rotation slider is anti-clockwise.
  • SI_ROTSLIDER_STATIC
    The rotation slider is static, i.e., the slider acts like a progress bar.

Definition at line 1388 of file mgutils.h.

char* tip

The tip text.

Definition at line 1407 of file mgutils.h.

void* type_data

The type-specific data of the item, used to define extra information of the item.

Definition at line 1416 of file mgutils.h.

int x

X-coordinate of the item in the skin.

Definition at line 1391 of file mgutils.h.

int y

Y-coordinate of the item in the skin.

Definition at line 1393 of file mgutils.h.


The documentation for this struct was generated from the following file: