⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolbar.h

📁 有了操作系统、TCP/IP协议栈、文件系统
💻 H
字号:
/** * \file toolbar.h * \author Wei Yongming <ymwei@minigui.org> * \date 2001/12/29 *  \verbatim    Copyright (C) 2002-2005 Feynman Software.    Copyright (C) 1998-2002 Wei Yongming.    This file is part of MiniGUI, a compact cross-platform Graphics     User Interface (GUI) support system for real-time embedded systems.    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    If you are using MiniGUI for developing commercial, proprietary, or other    software not covered by the GPL terms, you must have a commercial license    for MiniGUI. Please see http://www.minigui.com/product/index.html for     how to obtain this. If you are interested in the commercial MiniGUI     licensing, please write to sales@minigui.com.  \endverbatim *//* * $Id: toolbar.h,v 1.2 2005/02/15 05:00:08 weiym Exp $ * *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,  *                     and ThreadX version 1.6.x *             Copyright (C) 2002-2005 Feynman Software. *             Copyright (C) 1999-2002 Wei Yongming. */#ifndef _MGUI_CTRL_TOOLBAR_H#define _MGUI_CTRL_TOOLBAR_H #ifdef __cplusplusextern "C" {#endif  /* __cplusplus */    /**     * \addtogroup controls     * @{     */    /**     * \defgroup ctrl_toolbar ToolBar control     *     * \note The argument \a dwAddData of \a CreateWindowEx function should specify     *       the height and the width of item on toolbar.      * \note This control is reserved only for compatibility, new applications      *       should use the new tool bar control instead (NewToolBar).     *     * \code     * int item_height = 16;     * int item_width = 16;     *     * CreateWindowEx (CTRL_TOOLBAR, ..., MAKELONG (item_height, item_width));     * \endcode     *     * \sa ctrl_newtoolbar     *     * @{     *//** * \def CTRL_TOOLBAR * \brief The class name of toolbar control. */#define CTRL_TOOLBAR            ("toolbar")/** Structure of the toolbar item info */typedef struct _TOOLBARITEMINFO{    /** Reserved, do not use. */    int    insPos;    /**     * Identifier of the item. When the user clicked the item, this control     * will send a notification message to the parent window     * with the notification code to be equal to this identifier.     */    int    id;    /** Path of the bitmap for normal state of the item */    char   NBmpPath[MAX_PATH+10];    /** Path of the bitmap for hilighted state of the item */    char   HBmpPath[MAX_PATH+10];    /** Path of the bitmap for down state of the item */    char   DBmpPath[MAX_PATH+10];    /** Additional data of the item */    DWORD  dwAddData;} TOOLBARITEMINFO;/** * \var typedef TOOLBARITEMINFO* PTOOLBARITEMINFO; * \brief Data type of the pointer to a TOOLBARITEMINFO. */typedef TOOLBARITEMINFO* PTOOLBARITEMINFO;    /**     * \defgroup ctrl_toolbar_msgs Messages of toolbar control     *     * @{     *//** * \def TBM_ADDITEM * \brief Adds an item to a toolbar. * * \code * TBM_ADDITEM * TOOLBARITEMINFO *ptbii; * * wParam = 0; * lParam = (LPARAM)ptbii; * \endcode * * \param ptbii Pointer to the data storing the toolbar item info. */#define TBM_ADDITEM             0xFE00#define TBM_MSGMAX              0xFE10    /** @} end of ctrl_toolbar_msgs */    /** @} end of ctrl_toolbar */    /** @} end of controls */#ifdef __cplusplus}#endif  /* __cplusplus */#endif /* _MGUI_CTRL_TOOLBAR_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -