cleanup: convert tab to spaces and trim tail spaces

This commit is contained in:
Vincent Wei
2020-02-02 10:53:31 +08:00
parent 8dbe2c63f1
commit 14d020cccf
831 changed files with 468564 additions and 468554 deletions
+8 -8
View File
@@ -14,10 +14,10 @@
* \file animation.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: animation.h 10865 2008-08-27 06:52:22Z wangjian $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -83,10 +83,10 @@ typedef struct _ANIMATIONFRAME
/** The disposal method (from GIF89a specification):
* Indicates the way in which the graphic is to be treated after being displayed.
* - 0\n No disposal specified. The decoder is not required to take any action.
* - 1\n Do not dispose. The graphic is to be left in place.
* - 2\n Restore to background color. The area used by the frame must be restored to
* - 1\n Do not dispose. The graphic is to be left in place.
* - 2\n Restore to background color. The area used by the frame must be restored to
* the background color.
* - 3\n Restore to previous. The decoder is required to restore the area overwritten by
* - 3\n Restore to previous. The decoder is required to restore the area overwritten by
* the frmae with what was there prior to rendering the frame.
*/
int disposal;
@@ -251,7 +251,7 @@ MG_EXPORT void DestroyAnimation (ANIMATION* anim, BOOL free_it);
#define ANS_FITTOANI 0x0004L
/**
* \def ANS_WINBGC
* \def ANS_WINBGC
* \brief Use the background color of the window.
*/
#define ANS_WINBGC 0x0010L
@@ -302,7 +302,7 @@ MG_EXPORT void DestroyAnimation (ANIMATION* anim, BOOL free_it);
* \def ANM_STARTPLAY
* \brief Indicates the control to start playing the animation.
*
* The animation will not be played when create the control,
* The animation will not be played when create the control,
* an application should send ANM_STARTPLAY to an animation control
* to start playing the animation.
*
+54 -54
View File
@@ -14,10 +14,10 @@
* \file button.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: button.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_BUTTON_H
#define _MGUI_CTRL_BUTTON_H
#ifdef __cplusplus
extern "C" {
@@ -105,24 +105,24 @@ extern "C" {
/**
* \def BS_DEFPUSHBUTTON
* \brief Creates a push button that behaves like a BS_PUSHBUTTON style button.
* Creates a push button that behaves like a BS_PUSHBUTTON style button,
* but also has a heavy black border. If the button is in a dialog box,
* the user can select the button by pressing the enter key,
* even when the button does not have the input focus.
* This style is useful for enabling the user to quickly select
* Creates a push button that behaves like a BS_PUSHBUTTON style button,
* but also has a heavy black border. If the button is in a dialog box,
* the user can select the button by pressing the enter key,
* even when the button does not have the input focus.
* This style is useful for enabling the user to quickly select
* the most likely (default) option.
*/
#define BS_DEFPUSHBUTTON 0x00000001L
/**
* \def BS_CHECKBOX
* \brief Creates a check button is a button that can be either selected
* or deselected, and its selection is independent of the selections of
* \brief Creates a check button is a button that can be either selected
* or deselected, and its selection is independent of the selections of
* any other buttons.
*
* By default, the text is displayed to the right of the check box.
* To display the text to the left of the check box, combine this flag
* By default, the text is displayed to the right of the check box.
* To display the text to the left of the check box, combine this flag
* with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style).
*/
#define BS_CHECKBOX 0x00000002L
@@ -131,8 +131,8 @@ extern "C" {
* \def BS_AUTOCHECKBOX
* \brief Creates a button that is almost the same as a check box.
*
* Creates a button that is the same as a check box,
* except that the check state automatically toggles between
* Creates a button that is the same as a check box,
* except that the check state automatically toggles between
* checked and unchecked each time the user selects the check box.
*/
#define BS_AUTOCHECKBOX 0x00000003L
@@ -140,12 +140,12 @@ extern "C" {
/**
* \def BS_RADIOBUTTON
* \brief Creates a radio button that can be either selected
* or deselected, but when selecting it any other buttons in
* its group will be cleared.
* or deselected, but when selecting it any other buttons in
* its group will be cleared.
*
* By default, the text is displayed to the right of the circle.
* To display the text to the left of the circle, combine this flag
* with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style).
* By default, the text is displayed to the right of the circle.
* To display the text to the left of the circle, combine this flag
* with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style).
* Use radio buttons for groups of related, but mutually exclusive choices.
*/
#define BS_RADIOBUTTON 0x00000004L
@@ -153,11 +153,11 @@ extern "C" {
/**
* \def BS_AUTORADIOBUTTON
* \brief Creates a button that is almost the same as a radio button.
*
* Creates a button that is the same as a radio button,
* except that when the user selects it, The system automatically
*
* Creates a button that is the same as a radio button,
* except that when the user selects it, The system automatically
* sets the button's check state to checked
* and automatically sets the check state for all other buttons
* and automatically sets the check state for all other buttons
* in the same group to unchecked.
*/
#define BS_AUTORADIOBUTTON 0x00000005L
@@ -165,10 +165,10 @@ extern "C" {
/**
* \def BS_3STATE
* \brief Creates a button that is almost the same as a check box.
*
* Creates a button that is the same as a check box, except
*
* Creates a button that is the same as a check box, except
* that the box can be grayed as well as checked or unchecked.
* Use the grayed state to show that the state of the check box
* Use the grayed state to show that the state of the check box
* is not determined.
*/
#define BS_3STATE 0x00000006L
@@ -177,7 +177,7 @@ extern "C" {
* \def BS_AUTO3STATE
* \brief Creates a button that is almost the same as a three-state check box.
*
* Creates a button that is the same as a three-state check box,
* Creates a button that is the same as a three-state check box,
* except that the box changes its state when the user selects it.
* The state cycles through checked, grayed, and unchecked.
*/
@@ -212,7 +212,7 @@ extern "C" {
* \def BS_LEFTTEXT
* \brief Places text on the left side.
*
* Places text on the left side of the radio button
* Places text on the left side of the radio button
* or check box when combined with a radio button or check box style.
*/
#define BS_LEFTTEXT 0x00000020L
@@ -238,8 +238,8 @@ extern "C" {
* \def BS_LEFT
* \brief Left-justifies the text in the button rectangle.
*
* However, if the button is a check box or radio button that
* does not have the BS_RIGHTBUTTON style, the text is left
* However, if the button is a check box or radio button that
* does not have the BS_RIGHTBUTTON style, the text is left
* justified on the right side of the check box or radio button.
*/
#define BS_LEFT 0x00000100L
@@ -247,9 +247,9 @@ extern "C" {
/**
* \def BS_RIGHT
* \brief Right-justifies text in the button rectangle.
*
* However, if the button is a check box or radio button that
* does not have the BS_RIGHTBUTTON style, the text is
*
* However, if the button is a check box or radio button that
* does not have the BS_RIGHTBUTTON style, the text is
* right justified on the right side of the check box or radio button.
*/
#define BS_RIGHT 0x00000200L
@@ -294,8 +294,8 @@ extern "C" {
* \def BS_PUSHLIKE
* \brief Makes a button look and act like a push button.
*
* Makes a button (such as a check box, three-state check box, or radio button)
* look and act like a push button. The button looks raised when it isn't
* Makes a button (such as a check box, three-state check box, or radio button)
* look and act like a push button. The button looks raised when it isn't
* pushed or checked, and sunken when it is pushed or checked.
*/
#define BS_PUSHLIKE 0x00001000L
@@ -304,7 +304,7 @@ extern "C" {
* \def BS_MULTLINE
* \brief Wraps the button text to multiple lines.
*
* Wraps the button text to multiple lines if the text string is
* Wraps the button text to multiple lines if the text string is
* too long to fit on a single line in the button rectangle.
*/
#define BS_MULTLINE 0x00002000L
@@ -329,7 +329,7 @@ extern "C" {
/**
* \def BS_NOBORDER
* \brief The no border style of button.
* \brief The no border style of button.
*/
#define BS_NOBORDER 0x00010000L
@@ -349,7 +349,7 @@ extern "C" {
/**
* \def BST_POSE_MASK
* \brief The pose(normal, hilite, pushed and disable) mask of
* \brief The pose(normal, hilite, pushed and disable) mask of
* status of button.
*/
#define BST_POSE_MASK 0x0003
@@ -381,7 +381,7 @@ extern "C" {
/**
* \def BST_CHECK_MASK
* \brief The check(unchecked, checked and indeterminate) mask of
* \brief The check(unchecked, checked and indeterminate) mask of
* status of button.
*/
#define BST_CHECK_MASK 0x000c
@@ -400,7 +400,7 @@ extern "C" {
/**
* \def BST_INDETERMINATE
* \brief Indicates the button is grayed because
* \brief Indicates the button is grayed because
* the state of the button is indeterminate.
*/
#define BST_INDETERMINATE 0x0008
@@ -422,7 +422,7 @@ extern "C" {
* \def BM_GETCHECK
* \brief Retrieves the check state of a radio button or check box.
*
* An application sends a BM_GETCHECK message to retrieve
* An application sends a BM_GETCHECK message to retrieve
* the check state of a radio button or check box.
*
* \code
@@ -445,7 +445,7 @@ extern "C" {
* \def BM_SETCHECK
* \brief Sets the check state of a radio button or check box.
*
* An application sends a BM_SETCHECK message to set
* An application sends a BM_SETCHECK message to set
* the check state of a radio button or check box.
*
* \code
@@ -471,7 +471,7 @@ extern "C" {
* \def BM_GETSTATE
* \brief Gets the state of a button or check box.
*
* An application sends a BM_GETSTATE message to
* An application sends a BM_GETSTATE message to
* determine the state of a button or check box.
*
* \code
@@ -490,7 +490,7 @@ extern "C" {
* \def BM_SETSTATE
* \brief Sets the state of a button.
*
* An application sends a BM_SETSTATE message to set the state of a
* An application sends a BM_SETSTATE message to set the state of a
* button.
*
* \code
@@ -551,8 +551,8 @@ extern "C" {
/**
* \def BM_ENABLE
* \brief enable or disable the button.
*If it is disabled, it can receive mouse and key messages
* \brief enable or disable the button.
*If it is disabled, it can receive mouse and key messages
*but don't response them
*
* \code
@@ -571,7 +571,7 @@ extern "C" {
* \def BM_GETIMAGE
* \brief Retrieves the handle to the image.
*
* An application sends a BM_GETIMAGE message to
* An application sends a BM_GETIMAGE message to
* retrieve a handle to the image (icon or bitmap) associated with the button.
*
* \code
@@ -595,15 +595,15 @@ extern "C" {
#define BM_IMAGE_BITMAP 1
#define BM_IMAGE_ICON 2
/**
* \def BM_SETIMAGE
* \brief Associates a new image (icon or bitmap) with the button.
*
* An application sends a BM_SETIMAGE message to
* An application sends a BM_SETIMAGE message to
* associate a new image (icon or bitmap) with the button.
*
* Please use BM_IMAGE_BITMAP or BM_IMAGE_ICON as the first parameter of the message
* Please use BM_IMAGE_BITMAP or BM_IMAGE_ICON as the first parameter of the message
* to indicate the type of button control image:
* - BM_IMAGE_BITMAP\n
* Specifies the type of image to associate with the button to be a bitmap.
@@ -615,7 +615,7 @@ extern "C" {
#define BM_MSGMAX 0xF100
/** @} end of ctrl_button_msgs */
/**
* \defgroup ctrl_button_ncs Notification codes of button control
* @{
@@ -642,7 +642,7 @@ extern "C" {
/**
* \def BN_UNHILITE
* \brief The BN_UNHILITE notification message is sent when the user unhilite a button,
* \brief The BN_UNHILITE notification message is sent when the user unhilite a button,
* (the user moves the mouse leaving it)
*/
#define BN_UNHILITE 3
+43 -43
View File
@@ -14,10 +14,10 @@
* \file combobox.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: combobox.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_COMBOBOX_H
#define _MGUI_CTRL_COMBOBOX_H
#ifdef __cplusplus
extern "C" {
@@ -150,7 +150,7 @@ extern "C" {
* \def CBS_NOTIFY
* \brief Notifies the parent window.
*
* Causes the combo box to notify the parent window
* Causes the combo box to notify the parent window
* with a notification message.
*/
#define CBS_NOTIFY 0x0008L
@@ -169,14 +169,14 @@ extern "C" {
/**
* \def CBS_AUTOHSCROLL
* \brief This style is reserved.
* \brief This style is reserved.
*/
#define CBS_AUTOHSCROLL 0x0040L
/**
* \def CBS_DISABLENOSCROLL
* \brief This style is reserved.
* \brief This style is reserved.
*/
#define CBS_DISABLENOSCROLL 0x0080L
@@ -238,10 +238,10 @@ extern "C" {
/**
* \def CB_GETEDITSEL
* \brief Gets the starting and ending character positions of the current
* \brief Gets the starting and ending character positions of the current
* selection.
*
* An application sends a CB_GETEDITSEL message to get the starting and ending
* An application sends a CB_GETEDITSEL message to get the starting and ending
* character positions of the current selection in the edit control of a combo box.
*
* \code
@@ -267,7 +267,7 @@ extern "C" {
* \brief Limits the length of text in the edit control.
*
* An application sends a CB_LIMITTEXT message to limit the length of the text
* the user may type into the edit control of a combo box.
* the user may type into the edit control of a combo box.
*
* \code
* CB_LIMITTEXT
@@ -285,10 +285,10 @@ extern "C" {
/**
* \def CB_SETEDITSEL
* \brief Sets the starting and ending character positions of the current
* \brief Sets the starting and ending character positions of the current
* selection.
*
* An application sends a CB_SETEDITSEL message to set the starting and ending
* An application sends a CB_SETEDITSEL message to set the starting and ending
* character positions of the current selection in the edit control of a combo box.
*
* \code
@@ -312,7 +312,7 @@ extern "C" {
* \brief Adds a string to the list box of a combo box.
*
* An application sends a CB_ADDSTRING message to add a string to the list box
* of a combo box.
* of a combo box.
*
* \code
* CB_ADDSTRING
@@ -337,7 +337,7 @@ extern "C" {
* \brief Deletes a string in the list box of a combo box.
*
* An application sends a CB_DELETESTRING message to delete a string in the list box
* of a combo box.
* of a combo box.
*
* \code
* CB_DELETESTRING
@@ -359,8 +359,8 @@ extern "C" {
* \def CB_GETCOUNT
* \brief Retreives the number of items in the list box of a combo box.
*
* An application sends a CB_GETCOUNT message to retreive the number of items
* in the list box of a combo box.
* An application sends a CB_GETCOUNT message to retreive the number of items
* in the list box of a combo box.
*
* \code
* CB_GETCOUNT
@@ -377,8 +377,8 @@ extern "C" {
* \def CB_GETCURSEL
* \brief Retreives the index of the currently selected item in the list box.
*
* An application sends a CB_GETCURSEL message to retreive the index of the
* currently selected item in the list box of a combo box.
* An application sends a CB_GETCURSEL message to retreive the index of the
* currently selected item in the list box of a combo box.
*
* \code
* CB_GETCURSEL
@@ -396,8 +396,8 @@ extern "C" {
* \def CB_GETLBTEXT
* \brief Retreives the string of an item in the list box.
*
* An application sends a CB_GETLBTEXT message to retreive the string of
* a specified item in the list box of a combo box.
* An application sends a CB_GETLBTEXT message to retreive the string of
* a specified item in the list box of a combo box.
*
* \code
* CB_GETLBTEXT
@@ -422,7 +422,7 @@ extern "C" {
* \brief Gets the string length of an item in the list box.
*
* An application sends a CB_GETLBTEXTLEN message to get the string length
* of a specified item in the list box of a combo box.
* of a specified item in the list box of a combo box.
*
* \code
* CB_GETLBTEXTLEN
@@ -442,7 +442,7 @@ extern "C" {
* \def CB_INSERTSTRING
* \brief Inserts a string to the list box of a combo box.
*
* An application sends a CB_INSERTSTRING message to insert a string to the list
* An application sends a CB_INSERTSTRING message to insert a string to the list
* box of a combo box. Unlike the CB_ADDSTRING message, the CB_INSERTSTRING message
* do not cause a list to be sorted.
*
@@ -471,7 +471,7 @@ extern "C" {
* \brief Removes all items from the list box and edit control.
*
* An application sends a CB_RESETCONTENT message remove all items from the list
* box and edit control of a combo box.
* box and edit control of a combo box.
*
* \code
* CB_RESETCONTENT
@@ -486,10 +486,10 @@ extern "C" {
/**
* \def CB_FINDSTRING
* \brief Searchs the list box for an item beginning with the characters in a
* \brief Searchs the list box for an item beginning with the characters in a
* specified string.
*
* An application sends a CB_FINDSTRING message to search the list box for an
* An application sends a CB_FINDSTRING message to search the list box for an
* item beginning with the characters in a specified string.
*
* \code
@@ -523,7 +523,7 @@ extern "C" {
* lParam = 0;
* \endcode
*
* \param index The index of the string to select.
* \param index The index of the string to select.
*
* \return CB_OKAY on success; otherwise CB_ERR to indicate an invalid index.
*/
@@ -533,10 +533,10 @@ extern "C" {
/**
* \def CB_GETITEMADDDATA
* \brief Retreives the application-supplied 32-bit value associated with the
* \brief Retreives the application-supplied 32-bit value associated with the
* specified item.
*
* An application sends an CB_GETITEMADDDATA message to retrive the 32-bit data
* An application sends an CB_GETITEMADDDATA message to retrive the 32-bit data
* value associated with with an item in the list box of the combo box.
*
* \code
@@ -557,9 +557,9 @@ extern "C" {
/**
* \def CB_SETITEMADDDATA
* \brief Sets a 32-bit data value with the specified item.
*
* An application sends an CB_SETITEMADDDATA message to associate a 32-bit data
* value specified in the lParam parameter with an item in the list box that
*
* An application sends an CB_SETITEMADDDATA message to associate a 32-bit data
* value specified in the lParam parameter with an item in the list box that
* is specified in the wParam parameter.
*
* \code
@@ -582,7 +582,7 @@ extern "C" {
/**
* \def CB_GETDROPPEDCONTROLRECT
* \brief Retreives the screen coordinates of the dropdown list box of a combo box.
* \brief Retreives the screen coordinates of the dropdown list box of a combo box.
*
* \code
* CB_GETDROPPEDCONTROLRECT
@@ -599,8 +599,8 @@ extern "C" {
/**
* \def CB_SETITEMHEIGHT
* \brief Sets the height of all items of the list box in a combo box.
*
* An application sends an CB_SETITEMHEIGHT message to set the height of
*
* An application sends an CB_SETITEMHEIGHT message to set the height of
* all items of the list box in a combo box.
*
* \code
@@ -646,16 +646,16 @@ extern "C" {
* lParam = 0;
* \endcode
*
* \return If the list box is visible, the return value is TRUE;
* \return If the list box is visible, the return value is TRUE;
* otherwise, it is FALSE.
*/
#define CB_GETDROPPEDSTATE 0xF157
/**
* \def CB_FINDSTRINGEXACT
* \brief Searchs the list box for an item that matches the specified string.
* \brief Searchs the list box for an item that matches the specified string.
*
* An application sends a CB_FINDSTRINGEXACT message to search the list box for an
* An application sends a CB_FINDSTRINGEXACT message to search the list box for an
* item that matches a specified string.
*
* \code
@@ -858,10 +858,10 @@ extern "C" {
* \def CB_SETSTRCMPFUNC
* \brief Sets the STRCMP function used to sort items.
*
* An application sends a CB_SETSTRCMPFUNC message to set a
* An application sends a CB_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items in the combo-box.
*
* Note that you should send this message before adding
* Note that you should send this message before adding
* any item to the combo-box control.
*
* \code
@@ -891,7 +891,7 @@ extern "C" {
* \def CB_GETCHILDREN
* \brief Gets the handles to the children of a ComboBox control.
*
* An application sends a CB_GETCHILDREN message to get the handles
* An application sends a CB_GETCHILDREN message to get the handles
* to the children of a ComboBox control.
*
* \code
@@ -942,7 +942,7 @@ extern "C" {
* \def CBN_DBLCLK
* \brief Notifies the user has double clicked an item.
*
* A combo box created with the CBS_NOTIFY style sends an CBN_DBLCLK notification
* A combo box created with the CBS_NOTIFY style sends an CBN_DBLCLK notification
* message to its parent window when the user double-clicks a string in its listbox.
*/
#define CBN_DBLCLK 2
@@ -986,7 +986,7 @@ extern "C" {
* \def CBN_SELECTOK
* \brief Notifies the selection of a list item.
*
* The CBN_SELECTOK notification code is sent when the user has
* The CBN_SELECTOK notification code is sent when the user has
* selected a list item.
*/
#define CBN_SELECTOK 9
@@ -1007,7 +1007,7 @@ extern "C" {
* The CBN_CLICKED notification code is sent when the user has clicked combo box.
*/
#define CBN_CLICKED 11
/** @} end of ctrl_combobox_ncs */
/** @} end of ctrl_combobox */
+5 -5
View File
@@ -14,10 +14,10 @@
* \file coolbar.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: coolbar.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -158,7 +158,7 @@ typedef COOLBARITEMINFO *PCOOLBARITEMINFO;
* \brief The item bitmap has customized size.
*
* \note For the control with this style, you should pass
* the width and the height of the item bitmap by
* the width and the height of the item bitmap by
* the argument \a dwAddData of \a CreateWindowEx function.
*
* \code
@@ -204,7 +204,7 @@ typedef COOLBARITEMINFO *PCOOLBARITEMINFO;
* lParam = (LPARAM)newIteminfo;
* \endcode
*
* \param newIteminfo Pointer to the item info structure of the new item
* \param newIteminfo Pointer to the item info structure of the new item
* to be added.
*
* \return Zero when success, otherwise less than 0;
+19 -19
View File
@@ -14,10 +14,10 @@
* \file ctrlhelper.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: ctrlhelper.h 10829 2008-08-26 07:47:17Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_CTRLHELPER_H
#define _MGUI_CTRL_CTRLHELPER_H
#ifdef __cplusplus
extern "C" {
@@ -129,24 +129,24 @@ MG_EXPORT void GUIAPI DisabledTextOutEx (HDC hdc, HWND hwnd, int x, int y, const
* \brief Creates a tool tip window.
*
* This function creates a tool tip window and returns the handle to it.
* You can call \a DestroyToolTipWin to destroy it. This function also
* receives \a printf-like arguments to format a string.
* You can call \a DestroyToolTipWin to destroy it. This function also
* receives \a printf-like arguments to format a string.
*
* Note that the tool tip window will disappear automatically after the
* specified milliseconds by \a timeout_ms if \a timeout_ms is larger
* Note that the tool tip window will disappear automatically after the
* specified milliseconds by \a timeout_ms if \a timeout_ms is larger
* than 9 ms.
*
* \param hParentWnd The hosting main window.
* \param x The position of the tool tip window.
* \param y The position of the tool tip window.
* \param timeout_ms The timeout value of the tool tip window.
* \param timeout_ms The timeout value of the tool tip window.
* \param text The format string.
*
* \return The handle to the tool tip window on success, HWND_INVALID on error.
*
* \sa ResetToolTipWin, DestroyToolTipWin
*/
MG_EXPORT HWND CreateToolTipWin (HWND hParentWnd, int x, int y,
MG_EXPORT HWND CreateToolTipWin (HWND hParentWnd, int x, int y,
int timeout_ms, const char* text, ...);
/**
@@ -158,7 +158,7 @@ MG_EXPORT HWND CreateToolTipWin (HWND hParentWnd, int x, int y,
* position, text displayed in it, and the visible status. If the tool tip is
* invisible, it will become visible.
*
* This function also receives \a printf-like arguments to format a string.
* This function also receives \a printf-like arguments to format a string.
*
* \param hwnd The tool tip window handle returned by \a CreateToolTipWin.
* \param x The new position of the tool tip window.
@@ -167,18 +167,18 @@ MG_EXPORT HWND CreateToolTipWin (HWND hParentWnd, int x, int y,
*
* \sa CreateToolTipWin, DestroyToolTipWin
*/
MG_EXPORT void ResetToolTipWin (HWND hwnd, int x, int y,
MG_EXPORT void ResetToolTipWin (HWND hwnd, int x, int y,
const char* text, ...);
/**
* \fn void DestroyToolTipWin (HWND hwnd)
* \brief Destroies a tool tip window.
*
* This function destroies the specified tool tip window \a hwnd, which
* This function destroies the specified tool tip window \a hwnd, which
* is returned by \a CreateToolTipWin.
*
* \param hwnd The handle to the tool tip window.
*
*
* \sa CreateToolTipWin
*/
MG_EXPORT void DestroyToolTipWin (HWND hwnd);
@@ -190,9 +190,9 @@ MG_EXPORT void DestroyToolTipWin (HWND hwnd);
* By default, the notification from a control will be sent to its parent
* window within a MSG_COMMAND messsage.
*
* Since version 1.2.6, MiniGUI defines the Nofication Callback Procedure
* Since version 1.2.6, MiniGUI defines the Nofication Callback Procedure
* for control. You can specify a callback function for a control by calling
* \a SetNotificationCallback to receive and handle the notification from
* \a SetNotificationCallback to receive and handle the notification from
* the control.
*
* If you have defined the Notificaton Callback Procedure for the control,
@@ -215,14 +215,14 @@ MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, DWORD add_da
/**
* \def NotifyParent(hwnd, id, code)
* \brief Sends a notification message to the parent,
* \brief Sends a notification message to the parent,
* but without additional data.
*
* \param hwnd The handle to current control window.
* \param id The identifier of current control.
* \param code The notification code.
*
* \note This function is actually a macro of NotifyParentEx with
* \note This function is actually a macro of NotifyParentEx with
* \a dwAddData being zero.
*
* \sa NotifiyParentEx
@@ -238,7 +238,7 @@ MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, DWORD add_da
* an integer less than, equal to, or greater than zero if \a s1 is found,
* respectively, to be less than, to match, or be greater than \a s2.
*
* Note that it only compares the first (at most) \a n characters of s1 and s2.
* Note that it only compares the first (at most) \a n characters of s1 and s2.
*/
typedef int (*STRCMP) (const char* s1, const char* s2, size_t n);
+55 -55
View File
@@ -14,10 +14,10 @@
* \file edit.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: edit.h 13674 2010-12-06 06:45:01Z wanzheng $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_EDIT_H
#define _MGUI_CTRL_EDIT_H
#ifdef __cplusplus
extern "C" {
@@ -285,7 +285,7 @@ extern "C" {
* \def EM_SETSELPOS
* \sa EM_SETSEL
*/
#define EM_SETSELPOS EM_SETSEL
#define EM_SETSELPOS EM_SETSEL
/**
* \def EM_SETSELECTION
@@ -296,7 +296,7 @@ extern "C" {
/**
* \def EM_SELECTALL
* \brief Selects all the texts, the same meaning as ctrl+a
*
*
* \code
* EM_SELECTALL
*
@@ -381,7 +381,7 @@ extern "C" {
/**
* \def EM_SETLFDISPCHAR
* \brief Sets the char used to represent the line seperator.
*
*
* In default case, the line sperator will not be shown.
* If the char used to represent the line seperator is not zero,
* this char will be shown in place of line seperator.
@@ -401,7 +401,7 @@ extern "C" {
/**
* \def EM_SETLINESEP
* \brief Sets the line seperator.
*
*
* In default case, the line sperator is Line Feed
* characters(LF , ASCII 10, '\n').
*
@@ -465,7 +465,7 @@ extern "C" {
* means the character position in a text string.
* \param char_pos The new caret character position.
*
* \return Length of the string from the beginning to the caret position
* \return Length of the string from the beginning to the caret position
* on success, otherwise -1.
*/
#define EM_SETCARETPOS 0xF0BA
@@ -535,11 +535,11 @@ extern "C" {
/* internal used now */
/**
* \def EM_LINESCROLL
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_LINESCROLL 0xF0BF
/**
* \def EM_INSERTTEXT
* \brief Inserts the specified text to the current caret position
@@ -563,16 +563,16 @@ extern "C" {
/* Not use */
/**
* \def EM_LINELENGTH
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_LINELENGTH 0xF0C1
/* Not use */
/**
* \def EM_REPLACESEL
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_REPLACESEL 0xF0C2
@@ -585,8 +585,8 @@ extern "C" {
/* Not use */
/**
* \def EM_GETLINE
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_GETLINE 0xF0C4
@@ -619,7 +619,7 @@ extern "C" {
*/
#define EM_REDO 0xF0C6
/*#define EM_CANUNDO 0xF0C6 */
/**
* \def EM_UNDO
* \brief Undo operation.
@@ -636,30 +636,30 @@ extern "C" {
/* Not use */
/**
* \def EM_FMTLINES
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_FMTLINES 0xF0C8
/* Not use */
/**
* \def EM_LINEFROMCHAR
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_LINEFROMCHAR 0xF0C9
/* Not use */
/**
* \def EM_SETTABSTOPS
* \brief reserved.
*
* \brief reserved.
*
*/
#define EM_SETTABSTOPS 0xF0CB
/**
* \def EM_SETPASSWORDCHAR
* \brief Defines the character that edit control uses in conjunction with
* \brief Defines the character that edit control uses in conjunction with
* the ES_PASSWORD style.
*
* \code
@@ -707,7 +707,7 @@ extern "C" {
* \param content The string which will be drawed.
* \param len Length of the string which should be drawed by this callback.
* \param selout Length of the selected string that have been drawed before calling this callback function.
*
*
* \return Width of the outputed strings.
*/
typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
@@ -755,7 +755,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/**
* \def EM_GETPASSWORDCHAR
* \brief Returns the character that edit controls uses in conjunction with
* \brief Returns the character that edit controls uses in conjunction with
* the ES_PASSWORD style.
*
* \code
@@ -795,7 +795,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
* EM_CHANGECARETSHAPE
*
* int caret_shape;
*
*
* wParam = (WPARAM)caret_shape;
* lParam = 0;
* \endcode
@@ -833,17 +833,17 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/**
* \def EM_GETLIMITTEXT
* \brief Get text limit value of the edit control.
* \brief Get text limit value of the edit control.
*
* \return -1 when user doesn't set limit value, otherwise return current
* limit value.
* \return -1 when user doesn't set limit value, otherwise return current
* limit value.
*/
#define EM_GETLIMITTEXT 0xF0D6
/*
* \def EM_SETMARGINS
* \brief Set the margins of edit control
*
*
* \code
* EM_SETMARGINS
*
@@ -851,7 +851,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
*
* lParam = (LPARAM)prcMargins
* \endcode
*
*
* \param prcMargins : the margins info:
* - top : the top margin value
* - left: the left margin value
@@ -875,7 +875,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
*
* lParam = (LPARAM)prcMargins
* \endcode
*
*
* \param prcMargins : the margins info:
* - top : the top margin value
* - left: the left margin value
@@ -907,7 +907,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/**
* \def EM_SETTITLETEXT
* \brief Sets the title text displayed before content text.
* \brief Sets the title text displayed before content text.
*
* \code
* EM_SETTITLETEXT
@@ -924,7 +924,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/**
* \def EM_GETTITLETEXT
* \brief Gets the title text displayed before content text.
* \brief Gets the title text displayed before content text.
*
* \code
* EM_GETTITLETEXT
@@ -946,7 +946,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/**
* \def EM_SETTIPTEXT
* \brief Sets the tip text displayed when content is empty.
* \brief Sets the tip text displayed when content is empty.
*
* \code
* EM_SETTIPTEXT
@@ -962,7 +962,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/**
* \def EM_GETTIPTEXT
* \brief Gets the tip text displayed when content is empty.
* \brief Gets the tip text displayed when content is empty.
*
* \code
* EM_GETTIPTEXT
@@ -984,10 +984,10 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
* Structure defines text position information.
*/
typedef struct _TEXTPOSINFO {
/** The index of paragraph, if value is -1,
/** The index of paragraph, if value is -1,
*it will take effect on the whole text.*/
int paragraph_index;
/** The index of line, if value is -1,
/** The index of line, if value is -1,
*it will take effect on the whole text.*/
int line_index;
/** The beginning byte position can be copied to the buffer.*/
@@ -995,21 +995,21 @@ typedef struct _TEXTPOSINFO {
/** The maximal number of bytes can be copied to the buffer.
* It includes terminate character 0x0.*/
int copy_len;
/** The pointer to a buffer receives the text.
/** The pointer to a buffer receives the text.
*Please make sure buffer size is more than the value of copy_len.*/
char *buff;
}TEXTPOSINFO;
/**
* \def EM_GETNUMOFPARAGRAPHS
* \brief Gets the number of paragraphs in textedit control.
* \brief Gets the number of paragraphs in textedit control.
*
* \return The number of paragraphs.
*/
#define EM_GETNUMOFPARAGRAPHS 0xF0E0
/**
* \def EM_GETPARAGRAPHLENGTH
* \brief Gets the specified paragraph length in textedit control.
* \brief Gets the specified paragraph length in textedit control.
*
* \code
* EM_GETPARAGRAPHLENGTH
@@ -1021,7 +1021,7 @@ typedef struct _TEXTPOSINFO {
#define EM_GETPARAGRAPHLENGTH 0xF0E1
/**
* \def EM_GETPARAGRAPHTEXT
* \brief Gets the specified paragraph text from textedit control.
* \brief Gets the specified paragraph text from textedit control.
*
* \code
* EM_GETPARAGRAPHTEXT
@@ -1036,7 +1036,7 @@ typedef struct _TEXTPOSINFO {
* wParam = (WPARAM)&info;
* \endcode
*
* \return The copied length of text which doesn't include terminate
* \return The copied length of text which doesn't include terminate
* character 0x0.
*/
#define EM_GETPARAGRAPHTEXT 0xF0E2
@@ -1135,7 +1135,7 @@ typedef struct _TEXTPOSINFO {
/**
* \def EM_GETPARAGRAPHLENGTHINMCHAR
* \brief Gets the specified paragraph length in textedit control.
* in text not charactors.
* in text not charactors.
*
* \code
* EM_GETPARAGRAPHLENGTHINCHAR
@@ -1149,7 +1149,7 @@ typedef struct _TEXTPOSINFO {
/**
* \def EM_GETLINELENGTHINMCHAR
* \brief Gets the specified line length in textedit control.
* in charactors not byte.
* in charactors not byte.
*
* \code
* EM_GETLINELENGTHINMCHAR
@@ -1175,7 +1175,7 @@ typedef struct _TEXTPOSINFO {
/**
* \def EM_GETLINETEXT
* \brief Gets the specified line text from textedit control.
* \brief Gets the specified line text from textedit control.
*
* \code
* EM_GETLINETEXT
@@ -1190,7 +1190,7 @@ typedef struct _TEXTPOSINFO {
* wParam = (WPARAM)&info;
* \endcode
*
* \return The copied length of text which doesn't include terminate
* \return The copied length of text which doesn't include terminate
* character 0x0.
*/
#define EM_GETLINETEXT 0xF0E8
@@ -1219,7 +1219,7 @@ typedef struct _TEXTPOSINFO {
* \def EN_DBLCLK
* \brief Notifies a double click in an edit control.
*
* An edit control sends the EN_CLICKED notification code when the user
* An edit control sends the EN_CLICKED notification code when the user
* double clicks in an edit control.
*/
#define EN_DBLCLK 0x0002
@@ -1228,7 +1228,7 @@ typedef struct _TEXTPOSINFO {
* \def EN_SETFOCUS
* \brief Notifies the receipt of the input focus.
*
* The EN_SETFOCUS notification code is sent when an edit control receives
* The EN_SETFOCUS notification code is sent when an edit control receives
* the input focus.
*/
#define EN_SETFOCUS 0x0100
@@ -1237,7 +1237,7 @@ typedef struct _TEXTPOSINFO {
* \def EN_KILLFOCUS
* \brief Notifies the lost of the input focus.
*
* The EN_KILLFOCUS notification code is sent when an edit control loses
* The EN_KILLFOCUS notification code is sent when an edit control loses
* the input focus.
*/
#define EN_KILLFOCUS 0x0200
@@ -1246,7 +1246,7 @@ typedef struct _TEXTPOSINFO {
* \def EN_CHANGE
* \brief Notifies that the text is altered by the user.
*
* An edit control sends the EN_CHANGE notification code when the user takes
* An edit control sends the EN_CHANGE notification code when the user takes
* an action that may have altered text in an edit control.
*/
#define EN_CHANGE 0x0300
@@ -1268,7 +1268,7 @@ typedef struct _TEXTPOSINFO {
* \def EN_MAXTEXT
* \brief Notifies reach of maximum text limitation.
*
* The EN_MAXTEXT notification message is sent when the current text
* The EN_MAXTEXT notification message is sent when the current text
* insertion has exceeded the specified number of characters for the edit control.
*/
#define EN_MAXTEXT 0x0501
+31 -31
View File
@@ -14,10 +14,10 @@
* \file gridview.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: gridview.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -119,9 +119,9 @@ typedef struct _GRIDVIEWDATA
#define GV_HALIGN_CENTER 0x00000003
/** Column text vertical top align */
#define GV_VALIGN_TOP 0x00000010
/** Column text vertical bottom align */
/** Column text vertical bottom align */
#define GV_VALIGN_BOTTOM 0x00000020
/** Column text vertical center align */
/** Column text vertical center align */
#define GV_VALIGN_CENTER 0x00000030
/** Mask of horizontal align type */
@@ -165,7 +165,7 @@ typedef struct _GRIDVIEWDATA
#define GVITEM_FGCOLOR 0x0004
#define GVITEM_FONT 0x0008
#define GVITEM_IMAGE 0x0010
#define GVITEM_MAINCONTENT 0x0020
#define GVITEM_MAINCONTENT 0x0020
#define GVITEM_SIZE 0x0040
#define GVITEM_ALLCONTENT 0x00FF
@@ -273,13 +273,13 @@ typedef struct _GRIDCELLDATA
/** Mask of properties, can be OR'ed with following values:
* Set or get a cell style
* - GVITEM_STYLE\n
* Set or get a cell text color
* Set or get a cell text color
* - GVITEM_FGCOLOR\n
* Set or get a cell background color
* Set or get a cell background color
* - GVITEM_BGCOLOR\n
* Set or get a cell text font
* Set or get a cell text font
* - GVITEM_FONT\n
* Set or get a cell's image
* Set or get a cell's image
* - GVITEM_IMAGE\n
* Set or get all of the content of a cell
* - GVITEM_ALLCONTENT\n
@@ -310,9 +310,9 @@ typedef struct _GRIDCELLDATA
/**
* \def GRIDM_SETCELLPROPERTY
*
* \brief An Application sends a GRIDM_SETCELLPROPERTY message to set the
* cells' property in the grid control.
*
* \brief An Application sends a GRIDM_SETCELLPROPERTY message to set the
* cells' property in the grid control.
*
* \code
* GRIDM_SETCELLPROPERTY
@@ -320,7 +320,7 @@ typedef struct _GRIDCELLDATA
* GRIDCELLDATA* celldata;
*
* wParam = (WPARAM)cells; // The cell(s) which you want to set it's(their) property
* lParam = (LPARAM)celldata; // The pointer of the property you want to set.
* lParam = (LPARAM)celldata; // The pointer of the property you want to set.
* \endcode
*
* \return Returns GRID_OKAY if successful, or GRID_ERR otherwise.
@@ -330,7 +330,7 @@ typedef struct _GRIDCELLDATA
/**
* \def GRIDM_GETCELLPROPERTY
* \brief An Application sends a GRIDM_GETCELLPROPERTY message to get a single
* \brief An Application sends a GRIDM_GETCELLPROPERTY message to get a single
* cell's property in the grid control.
*
* \code
@@ -339,7 +339,7 @@ typedef struct _GRIDCELLDATA
* GRIDCELLDATA* celldata;
*
* wParam = (WPARAM)cell; // The cell(only for one cell now) which you want to get it's property
* lParam = (LPARAM)celldata; // The pointer of the property you want to get.
* lParam = (LPARAM)celldata; // The pointer of the property you want to get.
* \endcode
*
* \return Returns GRID_OKAY if successful, or GRID_ERR otherwise.
@@ -361,7 +361,7 @@ typedef struct _GRIDCELLDATA
* int width;
*
* wParam = (WPARAM)index; // The index of the column which you want to set width.
* lParam = (LPARAM)width; // The width of the column you want to set.
* lParam = (LPARAM)width; // The width of the column you want to set.
* \endcode
*
* \return Returns GRID_OKAY if successful, or GRID_ERR otherwise.
@@ -379,13 +379,13 @@ typedef struct _GRIDCELLDATA
* GRIDM_GETCOLWIDTH
* int index;
*
* wParam = 0;
* wParam = 0;
* lParam = (LPARAM)index; // The index of the column which you want to get width.
* \endcode
*
* \return The width of the column on success, otherwise -1.
*/
#define GRIDM_GETCOLWIDTH 0xF213
#define GRIDM_GETCOLWIDTH 0xF213
/**
* \def GRIDM_SETROWHEIGHT
@@ -396,11 +396,11 @@ typedef struct _GRIDCELLDATA
*
* \code
* GRIDM_SETROWHEIGHT
* int index
* int index
* int height;
*
* wParam = (WPARAM)index; // The index of the row which you want to set height.
* lParam = (LPARAM)height; //The height of the row you want to set.
* lParam = (LPARAM)height; //The height of the row you want to set.
* \endcode
*
* \return Returns GRID_OKAY if successful, or GRID_ERR otherwise.
@@ -418,7 +418,7 @@ typedef struct _GRIDCELLDATA
* GRIDM_GETROWHEIGHT
* int index ;
*
* wParam = 0
* wParam = 0
* lParam = (LPARAM)index // The index of the row which you want to get height.
* \endcode
*
@@ -437,9 +437,9 @@ typedef struct _GRIDCELLDATA
* GRIDM_ADDROW
* int index;
* GRIDCELLDATA* celldata;
*
*
* wParam = (WPARAM)index; // The index of the row which you want to add after it, zero base.
* lParam = (LPARAM)celldata; // The property which is setted to the new row.
* lParam = (LPARAM)celldata; // The property which is setted to the new row.
* \endcode
*
* \return Returns GRID_OKAY if successful, or GRID_ERR otherwise.
@@ -457,7 +457,7 @@ typedef struct _GRIDCELLDATA
* GRIDM_DELROW
* int index;
*
* wParam = 0;
* wParam = 0;
* lParam = index; // The index of the row which you want to delete.
* \endcode
*
@@ -475,9 +475,9 @@ typedef struct _GRIDCELLDATA
* GRIDM_ADDCOLUMN
* int index;
* GRIDCELLDATA* celldata;
*
*
* wParam = (WPARAM)index; // The index of the column which you want to add after it, zero base.
* lParam = (LPARAM)celldata; // The property which is setted to the new column.
* lParam = (LPARAM)celldata; // The property which is setted to the new column.
* \endcode
*
* \return Returns GRID_OKAY if successful, or GRID_ERR otherwise.
@@ -543,7 +543,7 @@ typedef struct _GRIDCELLDATA
*
* \code
* GRIDCELLS cells;
* char* format
* char* format
*
* GRIDM_SETNUMFORMAT
*
@@ -668,19 +668,19 @@ typedef struct _GRIDCELLDATA
#define GRIDN_KEYDOWN 3
/**
* \def GRIDN_CELLDBCLK
* \brief This notification code informs a application when the current selected cell
* \brief This notification code informs a application when the current selected cell
* has be double clicked.
*/
#define GRIDN_CELLDBCLK 4
/**
* \def GRIDN_CELLCLK
* \brief This notification code informs a application when the current selected cell
* \brief This notification code informs a application when the current selected cell
* has been clicked.
*/
#define GRIDN_CELLCLK 5
/**
* \def GRIDN_FOCUSCHANGED
* \brief This notification code informs a application when the current selected item
* \brief This notification code informs a application when the current selected item
* has changed.
*/
#define GRIDN_FOCUSCHANGED 6
+20 -20
View File
@@ -14,10 +14,10 @@
* \file iconview.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: iconview.h 11576 2009-04-27 01:01:57Z dongjunjie $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -76,7 +76,7 @@ extern "C" {
* \defgroup mgext_ctrl_iconview IconView control
* @{
*/
/**
/**
* \def CTRL_ICONVIEW
* \brief The class name of iconview control.
*/
@@ -88,16 +88,16 @@ extern "C" {
#define IV_ERR (-1)
/** Iconview return value */
#define IV_ERRSPACE (-2)
/**
* \var typedef GHANDLE HIVITEM
* \brief Icon view item handle
*/
typedef GHANDLE HIVITEM;
/**
/**
* Structure of the iconview item info, contains information about an item.
* This structure is used for creating or retrieving an item.
* This structure is used for creating or retrieving an item.
*/
typedef struct _IVITEMINFO
{
@@ -128,22 +128,22 @@ typedef struct _IVITEMINFO
typedef IVITEMINFO* PIVITEMINFO;
/** Iconview bitmap flags, reserved */
#define IVFLAG_BITMAP 0x0001
#define IVFLAG_BITMAP 0x0001
/** Iconview icon flags, reserved */
#define IVFLAG_ICON 0x0002
#define IVFLAG_ICON 0x0002
/**
* \fn int iconview_is_item_hilight (HWND hWnd, GHANDLE hivi)
* \brief Uses this to get an iconview item is hilighted or not.
*
* \returns TRUE when item is hilighted, or FALSE.
* \returns TRUE when item is hilighted, or FALSE.
*/
MG_EXPORT int iconview_is_item_hilight (HWND hWnd, GHANDLE hivi);
/**
* \fn DWORD iconview_get_item_bitmap (GHANDLE hivi)
* \brief Uses this to get bitmap handle from an iconview item.
* \brief Uses this to get bitmap handle from an iconview item.
*
* \returns the bitmap handle of iconview item.
*/
@@ -157,7 +157,7 @@ MG_EXPORT PBITMAP iconview_get_item_bitmap (GHANDLE hivi);
*/
MG_EXPORT const char* iconview_get_item_label (GHANDLE hivi);
/**
/**
* \fn DWORD iconview_get_item_adddata (GHANDLE hivi)
* \brief Uses this to get additional data from an iconview item.
*
@@ -182,7 +182,7 @@ MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
* \def IVS_NOTIFY
* \brief The notify style of iconview control
* \sa SVS_NOTIFY
*/
*/
#define IVS_NOTIFY SVS_NOTIFY
/**
@@ -196,14 +196,14 @@ MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
* \def IVS_AUTOSORT
* \brief The auto sort style of iconview control
* \sa SVS_AUTOSORT
*/
*/
#define IVS_AUTOSORT SVS_AUTOSORT
/**
* \def IVS_LOOP
* \brief The loop style of iconview control
* \sa SVS_LOOP
*/
*/
#define IVS_LOOP SVS_LOOP
@@ -216,17 +216,17 @@ MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
/**
* \def IVM_ADDITEM
* \brief Adds a item to iconview.
*
* \code
* \brief Adds a item to iconview.
*
* \code
* IVM_ADDITEM
* PIVITEMINFO p
*
* p =(LPARAM)lParam;
* \endcode
*
* \param p Pointes to a IVITEMINFO structure that contains the information of
* the new item to be added. nItem member of the IVITEMINFO struct speficied
* \param p Pointes to a IVITEMINFO structure that contains the information of
* the new item to be added. nItem member of the IVITEMINFO struct speficied
* the item position in its parent item, beginning with zero.
*
* \return Returns the handle of the new item if successful, or 0 otherwise.
+89 -89
View File
File diff suppressed because it is too large Load Diff
+93 -93
View File
File diff suppressed because it is too large Load Diff
+13 -13
View File
@@ -14,10 +14,10 @@
* \file menubutton.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: menubutton.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_MENUBUTTON_H
#define _MGUI_CTRL_MENUBUTTON_H
#ifdef __cplusplus
extern "C" {
@@ -109,7 +109,7 @@ extern "C" {
typedef struct _MENUBUTTONITEM
{
/**
* Which fields are valid when sets/retrives the item information
* Which fields are valid when sets/retrives the item information
* (ignored when add item). It can be OR'd with the following values:
*
* - MB_WHICH_TEXT The \a text field is valid.
@@ -138,8 +138,8 @@ typedef MENUBUTTONITEM* PMENUBUTTONITEM;
/**
* \def MBS_SORT
* \brief If this bit is set, the items listed in the control
* are displayed in a specified order.
* \brief If this bit is set, the items listed in the control
* are displayed in a specified order.
*/
#define MBS_SORT 0x0001
@@ -201,12 +201,12 @@ typedef MENUBUTTONITEM* PMENUBUTTONITEM;
*
* \param pos The position at which to add the item. If the control
* was created with the style of \a MBS_SORT, this parameter
* will be ignored. If this parameter is less than 0,
* will be ignored. If this parameter is less than 0,
* the new item will be append to the tail of the menu list.
* \param newitem Pointer to the menubutton item info structure.
*
* \return The position at which the item has been added, i.e.,
* the index of the added item if success. Otherwise,
* the index of the added item if success. Otherwise,
* the following error code will be returned:
*
* - MB_ERR_SPACE\n No memory can be allocated for new item.
@@ -260,7 +260,7 @@ typedef MENUBUTTONITEM* PMENUBUTTONITEM;
* \endcode
*
* \param index The index of the item to be altered.
* \param pmbi Pointer to the MENUBUTTONITEM structure that stores the new
* \param pmbi Pointer to the MENUBUTTONITEM structure that stores the new
* menubutton item data.
*
* \return MB_OKAY if success, otherwise will be one of the following error codes:
@@ -284,7 +284,7 @@ typedef MENUBUTTONITEM* PMENUBUTTONITEM;
* \endcode
*
* \param index The index of the specific item.
* \param pmbi Pointer to the MENUBUTTONITEM structure for storing the
* \param pmbi Pointer to the MENUBUTTONITEM structure for storing the
* menubutton item data.
*
* \return MB_OKAY if success, otherwise MB_INV_ITEM to indicate invalid index.
@@ -329,10 +329,10 @@ typedef MENUBUTTONITEM* PMENUBUTTONITEM;
* \def MBM_SETSTRCMPFUNC
* \brief Sets the STRCMP function used to sort items.
*
* An application sends a MBM_SETSTRCMPFUNC message to set a
* An application sends a MBM_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items in the menubutton.
*
* Note that you should send this message before adding
* Note that you should send this message before adding
* any item to the menubutton control.
*
* \code
+10 -10
View File
@@ -14,10 +14,10 @@
* \file monthcal.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: monthcal.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -97,7 +97,7 @@ typedef struct _SYSTEMTIME
} SYSTEMTIME;
/**
* \var typedef SYSTEMTIME *PSYSTEMTIME;
* \brief Data type of the pointer to a SYSTEMTIME.
* \brief Data type of the pointer to a SYSTEMTIME.
*/
typedef SYSTEMTIME *PSYSTEMTIME;
@@ -132,7 +132,7 @@ typedef struct _MCCOLORINFO
/**
* \var typedef MCCOLORINFO *PMCCOLORINFO;
* \brief Data type of the pointer to a MCCOLORINFO.
* \brief Data type of the pointer to a MCCOLORINFO.
*/
typedef MCCOLORINFO *PMCCOLORINFO;
@@ -356,14 +356,14 @@ typedef MCCOLORINFO *PMCCOLORINFO;
* lParam = (LPARAM)pcurdate;
* \endcode
*
* \param pcurdate Pointer to the SYSTEMTIME structure to retreive the
* \param pcurdate Pointer to the SYSTEMTIME structure to retreive the
* date of "today".
*/
#define MCM_GETTODAY 0xF311
/**
* \def MCM_GETMINREQRECTW
* \brief Gets the minimum width required to display a full month in a month
* \brief Gets the minimum width required to display a full month in a month
* calendar control.
*
* \code
@@ -379,7 +379,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/**
* \def MCM_GETMINREQRECTH
* \brief Gets the minimum height required to display a full month in a month
* \brief Gets the minimum height required to display a full month in a month
* calendar control.
*
* \code
@@ -405,7 +405,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
* lParam = (LPARAM)pcurdate;
* \endcode
*
* \param pcurdate Pointer to the SYSTEMTIME structure storing the values of
* \param pcurdate Pointer to the SYSTEMTIME structure storing the values of
* the current selected date.
*/
#define MCM_SETCURDATE 0xF314
@@ -422,7 +422,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
* lParam = (LPARAM)newcolor;
* \endcode
*
* \param newcolor Pointer to the MCCOLORINFO structure storing the vaules of
* \param newcolor Pointer to the MCCOLORINFO structure storing the vaules of
* the new color info.
*/
#define MCM_SETCOLOR 0xF315
+11 -11
View File
@@ -14,10 +14,10 @@
* \file newtoolbar.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: newtoolbar.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_NEWTOOLBAR_H
#define _MGUI_CTRL_NEWTOOLBAR_H
#ifdef __cplusplus
extern "C" {
@@ -75,7 +75,7 @@ extern "C" {
/**
* \defgroup ctrl_newtoolbar NewToolBar control
*
* \note You should pass information of the control through
* \note You should pass information of the control through
* the argument \a dwAddData of \a CreateWindowEx function.
*
* \code
@@ -119,17 +119,17 @@ typedef struct _NTBINFO
int nr_cols;
/**
* Width of bitmap cell. If w_cell is zero, it will be
* Width of bitmap cell. If w_cell is zero, it will be
* equal to (width_of_image / nr_cols).
*/
int w_cell;
/**
* Height of bitmap cell. If h_cell is zero, it will be
* Height of bitmap cell. If h_cell is zero, it will be
* equal to (height_of_image / nr_cells).
*/
int h_cell;
} NTBINFO;
/**
@@ -179,7 +179,7 @@ typedef void (* HOTSPOTPROC)(HWND hwnd, int id, const RECT* cell, int x, int y);
typedef struct _NTBITEMINFO
{
/**
* Which fields are valid when sets/retrives the item information
* Which fields are valid when sets/retrives the item information
* (ignored when add item). It can be OR'd with the following values:
*
* - MTB_WHICH_FLAGS\n The flags is valid.
@@ -246,13 +246,13 @@ typedef NTBITEMINFO* PNTBITEMINFO;
/**
* \def NTBS_WITHTEXT
* \brief Displays text with the item bitmap.
* \brief Displays text with the item bitmap.
*/
#define NTBS_WITHTEXT 0x000000001L
/**
* \def NTBS_TEXTRIGHT
* \brief Displays text at the right side of the item bitmap.
* \brief Displays text at the right side of the item bitmap.
*/
#define NTBS_TEXTRIGHT 0x000000002L
+11 -11
View File
@@ -14,10 +14,10 @@
* \file progressbar.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: progressbar.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_PROGRESSBAR_H
#define _MGUI_CTRL_PROGRESSBAR_H
#ifdef __cplusplus
extern "C" {
@@ -95,8 +95,8 @@ extern "C" {
/**
* \def PBS_NOTIFY
* \brief Notifies the parent window.
*
* Sends the parent window notification messages when
*
* Sends the parent window notification messages when
* the user clicks or double-clicks the control.
*/
#define PBS_NOTIFY 0x0001L
@@ -118,7 +118,7 @@ extern "C" {
* \def PBM_SETRANGE
* \brief Sets the limits of the range.
*
* Sets the upper and lower limits of the progress bar control's range,
* Sets the upper and lower limits of the progress bar control's range,
* and redraws the bar to reflect the new ranges.
*
* \code
@@ -157,7 +157,7 @@ extern "C" {
* \def PBM_SETPOS
* \brief Sets the progress bar control's current position.
*
* Sets the progress bar control's current position as specified by nPos,
* Sets the progress bar control's current position as specified by nPos,
* and redraw the bar to reflect the new position.
*
* \code
@@ -175,9 +175,9 @@ extern "C" {
/**
* \def PBM_DELTAPOS
* \brief Advances the progress bar control's current position.
* \brief Advances the progress bar control's current position.
*
* Advances the progress bar control's current position as specified by posInc,
* Advances the progress bar control's current position as specified by posInc,
* and redraw the bar to reflect the new position.
*
* \code
@@ -197,7 +197,7 @@ extern "C" {
* \def PBM_STEPIT
* \brief Advances the current position by the step increment.
*
* Advances the current position for a progress bar control by
* Advances the current position for a progress bar control by
* the step increment, and redraw the bar to reflect the new position.
*
* \code
+11 -11
View File
@@ -14,10 +14,10 @@
* \file propsheet.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: propsheet.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -108,7 +108,7 @@ extern "C" {
/**
* \def PSS_BOTTOM
* \brief Bottom tab style. Tabs will be located at the bottom of
* \brief Bottom tab style. Tabs will be located at the bottom of
* the property sheet.
*/
#define PSS_BOTTOM 0x0010L
@@ -327,7 +327,7 @@ extern "C" {
* \def PSM_REMOVEPAGE
* \brief Removes a page from the propsheet.
*
* Sends this message to remove a page from the propsheet and destroys the
* Sends this message to remove a page from the propsheet and destroys the
* associated controls.
*
* \code
@@ -349,10 +349,10 @@ extern "C" {
* \brief Sends a MSG_SHEETCMD message to all pages in the propsheet.
*
* If you send MSG_SHEETCMD message to the propsheet control, the control
* will broadcast the message to all pages it contains. The page callback
* will broadcast the message to all pages it contains. The page callback
* procedure will receive the message and handle it. If one page return non-zero
* value, the broadcast will be broken and the message will return a value
* indicating which page returned error. The value will be equal to the page index
* value, the broadcast will be broken and the message will return a value
* indicating which page returned error. The value will be equal to the page index
* plus one.
*
* The PSM_SHEETCMD can be used by property sheet window, i.e., the container
@@ -360,11 +360,11 @@ extern "C" {
* "Ok", "Cancel", and "Apply". When the user clicked the "Apply" or "Ok"
* button, it can send a PSM_SHEETCMD message to the propsheet control, the
* control will then send the message to all pages to notify pages to apply
* the changes made by the user. If there are some errors, the page can return
* the changes made by the user. If there are some errors, the page can return
* a non-zero value to indicate an invalid chage so that the sheet can stop
* to close the sheet window. You can tell the pages which action should
* be taken by passing a value through the WPARAM parameter of the message.
*
*
* \code
* PSM_SHEETCMD
* WPARAM wParam;
@@ -393,7 +393,7 @@ extern "C" {
/**
* \def PSN_ACTIVE_CHANGED
* \brief Notifies the parent window that the active page of
* \brief Notifies the parent window that the active page of
* the propsheet has been changed.
*/
#define PSN_ACTIVE_CHANGED 0x01
+29 -29
View File
@@ -12,12 +12,12 @@
//////////////////////////////////////////////////////////////////////////////
/**
* \file scrollbar.h
* \author wangjian
* \author wangjian
* \date 2008/01/17
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: scrollbar.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_SCROLLBAR_H
#define _MGUI_CTRL_SCROLLBAR_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -105,7 +105,7 @@ extern "C" {
* \def SBS_BOTTOMALIGN
* \brief Create a horizontal scrollbar on the bottom of the rect.
*
* \note This style must be used together with SBS_HORZ, and the height of the
* \note This style must be used together with SBS_HORZ, and the height of the
* scrollbar will depend on the window elements or renderer.
*/
#define SBS_BOTTOMALIGN 0x0001
@@ -114,7 +114,7 @@ extern "C" {
* \def SBS_TOPALIGN
* \brief Create a horizontal scrollbar on the top of the rect.
*
* \note This style must be used together with SBS_HORZ, and the height of the
* \note This style must be used together with SBS_HORZ, and the height of the
* scrollbar will depend on the window elements or renderer.
*/
#define SBS_TOPALIGN 0x0002
@@ -123,7 +123,7 @@ extern "C" {
* \def SBS_LEFTALIGN
* \brief Create a vertical scrollbar on the left of the rect.
*
* \note This style must be used together with SBS_VERT, and the width of the
* \note This style must be used together with SBS_VERT, and the width of the
* scrollbar will depend on the window elements or renderer.
*/
#define SBS_LEFTALIGN 0x0001
@@ -132,7 +132,7 @@ extern "C" {
* \def SBS_RIGHTALIGN
* \brief Create a vertical scrollbar on the right of the rect.
*
* \note This style must be used together with SBS_VERT, and the width of the
* \note This style must be used together with SBS_VERT, and the width of the
* scrollbar will depend on the window elements or renderer.
*/
#define SBS_RIGHTALIGN 0x0002
@@ -191,15 +191,15 @@ extern "C" {
* \def SBM_GETPOS
* \brief Get the thumb pos of the scrollbar.
*
* An application sends a SBM_GETPOS message to get the start position
* of the scrollbar thumb.
* An application sends a SBM_GETPOS message to get the start position
* of the scrollbar thumb.
*
* \code
* SBM_GETPOS
* int pos;
*
*
* pos = SendMessage (hwnd_scrollbar, SBM_GETPOS, 0, 0);
* \endcode
* \endcode
*
* \return the postion of the thumb.
*/
@@ -209,20 +209,20 @@ extern "C" {
* \def SBM_SETPOS
* \brief Set the thumb pos of the scrollbar.
*
* An application sends a SBM_SETPOS message to set the start position
* of the scrollbar thumb.
* An application sends a SBM_SETPOS message to set the start position
* of the scrollbar thumb.
*
* \code
* SBM_SETPOS
* int pos = 10;
* BOOL redraw = TRUE;
*
*
* wParam = (WPARAM)pos;
* lParam = (LPARAM)redraw;
* SendMessage (hwnd_scrollbar, SBM_SETPOS, wParam, lParam);
* \endcode
*
* \param pos The new positon of the thumb to set.
* \param pos The new positon of the thumb to set.
* \param redraw Whether to repaint the control, TRUE for repaint, FALSE for not.
*
* \return the old postion of the thumb.
@@ -233,15 +233,15 @@ extern "C" {
* \def SBM_GETRANGE
* \brief Get the range of the scrollbar.
*
* An application sends a SBM_GETRANGE message to get the move
* range of the scrollbar.
* An application sends a SBM_GETRANGE message to get the move
* range of the scrollbar.
*
* \code
* SBM_GETRANGE
* int range;
*
*
* range = SendMessage (hwnd_scrollbar, SBM_GETRANGE, 0, 0);
* \endcode
* \endcode
*
* \return the range of the scrollbar.
*/
@@ -251,14 +251,14 @@ extern "C" {
* \def SBM_SETRANGE
* \brief Set the range of the scrollbar.
*
* An application sends a SBM_SETRANGE message to set the move
* range of the scrollbar.
* An application sends a SBM_SETRANGE message to set the move
* range of the scrollbar.
*
* \code
* SBM_SETRANGE
* int min = 0;
* int max = 100;
*
*
* wParam = (WPARAM)min;
* lParam = (LPARAM)max;
* SendMessage (hwnd_scrollbar, SBM_SETRANGE, wParam, lParam);
@@ -275,14 +275,14 @@ extern "C" {
* \def SBM_SETRANGEREDRAW
* \brief Set the range of the scrollbar.
*
* An application sends a SBM_SETRANGEREDRAW message to set the move
* range of the scrollbar and redraw the control.
* An application sends a SBM_SETRANGEREDRAW message to set the move
* range of the scrollbar and redraw the control.
*
* \code
* SBM_SETRANGEREDRAW
* int min = 0;
* int max = 100;
*
*
* wParam = (WPARAM)min;
* lParam = (LPARAM)max;
* SendMessage (hwnd_scrollbar, SBM_SETRANGEREDRAW, wParam, lParam);
@@ -300,13 +300,13 @@ extern "C" {
* \brief Enable or disable the arrow of the scrollbar.
*
* An application sends a SBM_ENABLE_ARROW message to enable or disable
* the arrow button of the scrollbar.
* the arrow button of the scrollbar.
*
* \code
* SBM_ENABLE_ARROW
* int which = SB_ARROW_LTUP;
* BOOL is_active;
*
*
* wParam = (WPARAM)which;
* lParam = (LPARAM)is_active;
* SendMessage (hwnd_scrollbar, SBM_ENABLE_ARROW, wParam, lParam);
+25 -25
View File
@@ -14,10 +14,10 @@
* \file scrollview.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: scrollview.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_SCROLLVIEW_H
#define _MGUI_CTRL_SCROLLVIEW_H
#ifdef __cplusplus
extern "C" {
@@ -100,8 +100,8 @@ extern "C" {
*/
#define CTRL_SCROLLWND ("scrollwnd")
/** Default container window procedure
* \sa DefaultDialogProc
/** Default container window procedure
* \sa DefaultDialogProc
*/
MG_EXPORT LRESULT GUIAPI DefaultContainerProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
@@ -119,34 +119,34 @@ typedef struct _CONTAINERINFO
int x, y, w, h; /** position and size of the container */
#endif
/** User-defined window procedure of the container */
WNDPROC user_proc;
WNDPROC user_proc;
/** Number of controls */
int controlnr;
int controlnr;
/** Pointer to control array */
PCTRLDATA controls;
PCTRLDATA controls;
/** Additional data */
DWORD dwAddData;
DWORD dwAddData;
} CONTAINERINFO;
/** Data type of pointer to a CONTAINERINFO */
typedef CONTAINERINFO* PCONTAINERINFO;
/**
/**
* \fn DWORD mglist_get_item_adddata (GHANDLE hi)
* \brief Use this to get additional data from a list item in a control, such as
* scrollview and iconview.
*/
MG_EXPORT DWORD mglist_get_item_adddata (GHANDLE hi);
/**
/**
* \fn DWORD scrollview_get_item_adddata (HSVITEM hsvi)
* \brief Use this to get additional data from scrollview item
* \brief Use this to get additional data from scrollview item
*/
MG_EXPORT DWORD scrollview_get_item_adddata (HSVITEM hsvi);
/**
* \fn int scrollview_get_item_index (HWND hWnd, HSVITEM hsvi);
* \brief To get item index
*/
*/
MG_EXPORT int scrollview_get_item_index (HWND hWnd, HSVITEM hsvi);
/**
@@ -208,11 +208,11 @@ typedef int (*SVITEM_CMP) (HSVITEM hsvi1, HSVITEM hsvi2);
typedef struct _svitem_operations
{
/** Called when an scrollview item is created */
SVITEM_INITFUNC initItem;
SVITEM_INITFUNC initItem;
/** Called when an item is destroied */
SVITEM_DESTROYFUNC destroyItem;
SVITEM_DESTROYFUNC destroyItem;
/** Call this to draw an item */
SVITEM_DRAWFUNC drawItem;
SVITEM_DRAWFUNC drawItem;
} SVITEMOPS;
/** Data type of pointer to a SVITEMOPS */
typedef SVITEMOPS* PSVITEMOPS;
@@ -221,11 +221,11 @@ typedef SVITEMOPS* PSVITEMOPS;
typedef struct _SCROLLVIEWITEMINFO
{
/** Index of item */
int nItem;
int nItem;
/** Height of an item */
int nItemHeight;
int nItemHeight;
/** Item additional data */
DWORD addData;
DWORD addData;
} SVITEMINFO;
/** Data type of pointer to a SVITEMINFO */
typedef SVITEMINFO* PSVITEMINFO;
@@ -237,7 +237,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/**
* \def SVS_UPNOTIFY
* \brief Sends the notification messages to parent window when the keys is up.
* \brief Sends the notification messages to parent window when the keys is up.
*/
#define SVS_UPNOTIFY 0x0001L
@@ -249,7 +249,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/**
* \def SVS_AUTOSORT
* \brief Automatically sorts strings entered in the scrollview control.
* \brief Automatically sorts strings entered in the scrollview control.
*/
#define SVS_AUTOSORT 0x0004L
@@ -678,7 +678,7 @@ typedef SVITEMINFO* PSVITEMINFO;
* \def SVM_GETCURSEL
* \brief Gets the index of the current hilighted scrollview item.
*
* An application sends an this message to a scrollview window to get the index of
* An application sends an this message to a scrollview window to get the index of
* the currently selected item, if there is one, in a single-selection scrollview.
* For multiple-selection case, appliction send this message to a scrollview
* to get the index of the current highlighted item.
@@ -768,7 +768,7 @@ typedef SVITEMINFO* PSVITEMINFO;
*
* \param nitem Item index.
* \param bVisible If bVisible is TRUE, this item wille be made visible.
*
*
* \return old hilighted item index on success, otherwise -1.
*/
#define SVM_SETCURSEL 0xF322
@@ -1114,7 +1114,7 @@ typedef SVITEMINFO* PSVITEMINFO;
#define SVN_SELCHANGED 2
/** Indicates the hilighted item changing */
#define SVN_SELCHANGING 4
#define SVN_SELCHANGING 4
/** @} end of ctrl_scrollview_ncs */
+9 -9
View File
@@ -14,10 +14,10 @@
* \file spinbox.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: spinbox.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -102,7 +102,7 @@ typedef SPININFO *PSPININFO;
* \fn void GetSpinBoxSize (DWORD dwStyle, int* w, int* h)
* \brief Gets size of a vertical spin box control.
*
* The spin box control in MiniGUI has fixed size.
* The spin box control in MiniGUI has fixed size.
* This function gets the size of a spin box control.
*
* \param dwStyle The style of the spin box.
@@ -118,7 +118,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/**
* \def SPS_AUTOSCROLL
* \brief The spinbox control can automatically scroll,
* \brief The spinbox control can automatically scroll,
* and disable itself when reach maximal or minimal value.
*/
#define SPS_AUTOSCROLL 0x00000001L
@@ -131,26 +131,26 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/**
* \def SPS_TYPE_NORMAL
* \brief The spinbox control contains the up and left arrows.
* \brief The spinbox control contains the up and left arrows.
*/
#define SPS_TYPE_NORMAL 0x00000000L
/**
* \def SPS_TYPE_UPARROW
* \brief The spinbox control contains only the up/left arrow.
* \brief The spinbox control contains only the up/left arrow.
*/
#define SPS_TYPE_UPARROW 0x00000100L
/**
* \def SPS_TYPE_DOWNARROW
* \brief The spinbox control contains only the down/right arrow.
* \brief The spinbox control contains only the down/right arrow.
*/
#define SPS_TYPE_DOWNARROW 0x00000200L
/**
* \def SPS_TYPE_MASK
* \brief The mask code of spinbox control.
*/
*/
#define SPS_TYPE_MASK 0x00000F00L
/** @} end of mgext_ctrl_spinbox_styles */
+26 -26
View File
@@ -14,10 +14,10 @@
* \file static.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: static.h 12453 2010-01-12 03:51:55Z dongkai $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_STATIC_H
#define _MGUI_CTRL_STATIC_H
#ifdef __cplusplus
extern "C" {
@@ -90,7 +90,7 @@ extern "C" {
/**
* \def SS_SIMPLE
* \brief Designates a simple rectangle and displays a single line
* \brief Designates a simple rectangle and displays a single line
* of text flush-left in the rectangle.
*/
#define SS_SIMPLE 0x00000000L
@@ -155,10 +155,10 @@ extern "C" {
/* Reserved */
#define SS_ENHMETAFILE 0x0000000BL
/**
/**
* \def SS_TYPEMASK
* \brief The mask code of the static control.
*/
*/
#define SS_TYPEMASK 0x0000000FL
/**
@@ -169,7 +169,7 @@ extern "C" {
/**
* \def SS_CENTER
* \brief Displays the given text centered in the rectangle.
* \brief Displays the given text centered in the rectangle.
*/
#define SS_CENTER 0x00000020L
@@ -179,16 +179,16 @@ extern "C" {
*/
#define SS_RIGHT 0x00000030L
/**
/**
* \def SS_ALIGNMASK
* \brief The mask code of the static control.
*/
*/
#define SS_ALIGNMASK 0x000000F0L
/**
* \def SS_NOPREFIX
* \brief Prevents interpretation of any ampersand (&) characters in
* \brief Prevents interpretation of any ampersand (&) characters in
* the control's text as accelerator prefix characters.
*
* \note Not implemented so far.
@@ -204,10 +204,10 @@ extern "C" {
/**
* \def SS_NOWORDWRAP
* \brief Designates a simple rectangle and displays the given text
* in single line in the rectangle.
* \brief Designates a simple rectangle and displays the given text
* in single line in the rectangle.
*
* Tabs are expanded, but words are not wrapped.
* Tabs are expanded, but words are not wrapped.
* Text that extends past the rectagnel is clipped.
*/
#define SS_NOWORDWRAP 0x00000400L
@@ -228,40 +228,40 @@ extern "C" {
/**
* \def SS_NOTIFY
* \brief Sends the parent window notification messages when the user
* \brief Sends the parent window notification messages when the user
* clicks or double-clicks the control.
*/
#define SS_NOTIFY 0x00001000L
/** @} end of ctrl_static_styles */
/**
* \defgroup ctrl_static_msgs Messages of static control
* @{
*/
/* Reserved */
#define STM_SETICON 0xF170
/* Reserved */
/* Reserved */
#define STM_GETICON 0xF171
/**
* \def STM_SETIMAGE
* \brief Associates a new image (icon or bitmap) with a static control.
*
* An application sends an STM_SETIMAGE message to
* An application sends an STM_SETIMAGE message to
* associate a new image (icon or bitmap) with a static control.
*
* \code
* STM_SETIMAGE
* HICON image;
* or
* or
* BITMAP* image;
*
* wParam = (WPARAM)image;
* lParam = 0;
* \endcode
*
* \param image The handle to an icon if the type of static control type
*
* \param image The handle to an icon if the type of static control type
* is SS_ICON, or the pointer to a BITMAP object if the type is SS_BITMAP.
*
* \return The old image (handle or pointer).
@@ -272,7 +272,7 @@ extern "C" {
* \def STM_GETIMAGE
* \brief Retrieves a handle to the image.
*
* An application sends an STM_GETIMAGE message to retrieve a handle
* An application sends an STM_GETIMAGE message to retrieve a handle
* to the image associated with a static control.
*
* \code
@@ -281,7 +281,7 @@ extern "C" {
* lParam = 0;
* \endcode
*
* \return The handle to the icon if the type of static control type is SS_ICON,
* \return The handle to the icon if the type of static control type is SS_ICON,
* or the pointer to the BITMAP object if the type is SS_BITMAP.
*/
#define STM_GETIMAGE 0xF173
@@ -299,21 +299,21 @@ extern "C" {
* \def STN_DBLCLK
* \brief Notifies a double-click.
*
* The STN_DBLCLK notification message is sent when
* The STN_DBLCLK notification message is sent when
* the user double-clicks a static control that has the SS_NOTIFY style.
*/
#define STN_DBLCLK 1
/* Not use */
#define STN_ENABLE 2
/* Not use */
/* Not use */
#define STN_DISABLE 3
/**
* \def STN_CLICKED
* \brief Notifies that a static control is clicked.
*
* The STN_CLICKED notification message is sent
* The STN_CLICKED notification message is sent
* when the user clicks a static control that has the SS_NOTIFY style.
*/
#define STN_CLICKED 4
+5 -5
View File
@@ -14,10 +14,10 @@
* \file textedit.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: textedit.h 12871 2010-05-07 06:13:42Z wanzheng $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_TEXTEDIT_H
#define _MGUI_CTRL_TEXTEDIT_H
#ifdef __cplusplus
extern "C" {
@@ -84,7 +84,7 @@ extern "C" {
#define CTRL_TEXTEDIT ("textedit")
/**
/**
* \var typedef GHANDLE HTEXTDOC
* \brief Text document/buffer object
*/
+11 -11
View File
@@ -14,10 +14,10 @@
* \file trackbar.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2001/12/29
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,13 +55,13 @@
/*
* $Id: trackbar.h 10690 2008-08-18 09:32:47Z weiym $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
#ifndef _MGUI_CTRL_TRACKBAR
#define _MGUI_CTRL_TRACKBAR
#ifdef __cplusplus
extern "C" {
@@ -96,7 +96,7 @@ extern "C" {
/**
* \def TBS_NOTIFY
* \brief Causes the trackbar to notify the parent window with a notification message
* \brief Causes the trackbar to notify the parent window with a notification message
* when the user clicks or doubleclicks the trackbar.
*/
#define TBS_NOTIFY 0x0001L
@@ -137,7 +137,7 @@ extern "C" {
/**
* \def TBM_SETRANGE
* \brief Sets the range of minimum and maximum logical positions for the
* \brief Sets the range of minimum and maximum logical positions for the
* slider in a trackbar.
*
* \code
@@ -253,8 +253,8 @@ extern "C" {
* input from page keys..
*
* Sets the number of logical positions the trackbar's slider moves in response
* to keyboard input form page keys, such as PAGE DOWN or PAGE UP keys. The
* logical positions are the integer increments in the trackbar's range of
* to keyboard input form page keys, such as PAGE DOWN or PAGE UP keys. The
* logical positions are the integer increments in the trackbar's range of
* minimum to maximum slider positions.
*
* \code
@@ -277,8 +277,8 @@ extern "C" {
* input from page keys..
*
* Gets the number of logical positions the trackbar's slider moves in response
* to keyboard input form page keys, such as PAGE DOWN or PAGE UP keys. The
* logical positions are the integer increments in the trackbar's range of
* to keyboard input form page keys, such as PAGE DOWN or PAGE UP keys. The
* logical positions are the integer increments in the trackbar's range of
* minimum to maximum slider positions.
*
* \code
@@ -466,7 +466,7 @@ extern "C" {
/**
* \def LFRDR_TBS_PRESSED
* \brief indicate left button down
*/
*/
#define LFRDR_TBS_PRESSED 0x0100L
/**
+18 -18
View File
@@ -14,10 +14,10 @@
* \file treeview.h
* \author Wei Yongming <vincent@minigui.org>
* \date 2002/01/06
*
*
\verbatim
This file is part of MiniGUI, a mature cross-platform windowing
This file is part of MiniGUI, a mature cross-platform windowing
and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices.
@@ -55,7 +55,7 @@
/*
* $Id: treeview.h 13674 2010-12-06 06:45:01Z wanzheng $
*
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
* pSOS, ThreadX, NuCleus, OSE, and Win32.
*/
@@ -76,7 +76,7 @@ extern "C" {
* \defgroup mgext_ctrl_treeview TreeView control
*
* \note You can pass the root item information through \a dwAddData
* argument of CreateWindowEx function.
* argument of CreateWindowEx function.
*
* \code
* HICON folded, unfolded;
@@ -84,7 +84,7 @@ extern "C" {
*
* CreateWindowEx (CTRL_TREEVIEW, ..., (DWORD)&tvii);
* \endcode
*
*
* @{
*/
@@ -141,7 +141,7 @@ typedef TVITEMINFO *PTVITEMINFO;
/**
* \def TVS_NOTIFY
* \brief Sends the parent window notification messages when the user
* \brief Sends the parent window notification messages when the user
* clicks or double-clicks the control.
*/
#define TVS_NOTIFY 0x0001L
@@ -194,7 +194,7 @@ typedef TVITEMINFO *PTVITEMINFO;
* \endcode
*
* \param parent Handle to the item who is the parent of the new item.
* \param newIteminfo Pointer to the item info structure of the new item
* \param newIteminfo Pointer to the item info structure of the new item
* to be added.
*
* \return The handle to the new item on success, otherwise return 0.
@@ -372,7 +372,7 @@ typedef TVITEMINFO *PTVITEMINFO;
*
* \param item The handle to the item which we want to retrive.
* \param tvii A pointer to a TVITEMINFO structure to receive the item information.
* Note that the \a text field of this structure should be large enough to
* Note that the \a text field of this structure should be large enough to
* get the item text.
*
* \return Zero on success, otherwise -1.
@@ -420,7 +420,7 @@ typedef TVITEMINFO *PTVITEMINFO;
* lParam = (LPARAM)item;
* \endcode
*
* \param related A integer which indicates the relationship between
* \param related A integer which indicates the relationship between
* the item to retrive and the specified item, can be one of the following values:
* - TVIR_PARENT\n
* To retrive the parent item of the specified item.
@@ -441,10 +441,10 @@ typedef TVITEMINFO *PTVITEMINFO;
* \def TVM_SETSTRCMPFUNC
* \brief Sets the STRCMP function used to sort items.
*
* An application sends a TVM_SETSTRCMPFUNC message to set a
* An application sends a TVM_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items in the TreeView control.
*
* Note that you should send this message before adding
* Note that you should send this message before adding
* any item to the TreeView control.
*
* \code
@@ -480,8 +480,8 @@ typedef TVITEMINFO *PTVITEMINFO;
/**
* \def TVN_ERRSPACE
* \brief Indicates that memory is not enough.
*
* A list box sends an TVN_ERRSPACE notification message to its parent window
*
* A list box sends an TVN_ERRSPACE notification message to its parent window
* when it cannot allocate enough memory to complete the current operation.
*/
#define TVN_ERRSPACE 255
@@ -501,8 +501,8 @@ typedef TVITEMINFO *PTVITEMINFO;
/**
* \def TVN_SETFOCUS
* \brief Indicates gain of input focus.
*
* A TreeView control sends an TVN_SETFOCUS notification message to its parent window
*
* A TreeView control sends an TVN_SETFOCUS notification message to its parent window
* when the list box gains the input focus.
*/
#define TVN_SETFOCUS 4
@@ -510,8 +510,8 @@ typedef TVITEMINFO *PTVITEMINFO;
/**
* \def TVN_KILLFOCUS
* \brief Indicates loss of input focus.
*
* A TreeView control sends an TVN_KILLFOCUS notification message to its parent window
*
* A TreeView control sends an TVN_KILLFOCUS notification message to its parent window
* when the list box loses the input focus.
*/
#define TVN_KILLFOCUS 5
@@ -551,7 +551,7 @@ typedef TVITEMINFO *PTVITEMINFO;
* \a add_data argument of \a NotifyParentEx function. You should define and
* set Notificaton Callback Procedure for the control in order to
* get the handle to the unfolded item.
*
*
* \sa SetNotificationCallback, NotifyParentEx
*/
#define TVN_UNFOLDED 10