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

📄 spinbox.c

📁 MINI GUI1.6X源码
💻 C
字号:
/*** $Id: spinbox.c,v 1.2 2003/05/07 06:58:48 weiym Exp $**** spinbox.c: The SpinBox control demo program.**** Copyright (C) 2001 ~ 2002 Wei Yongming.** Copyright (C) 2003 Feynman Software.**** Create date: 2001/11/01*//***  This source 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 software 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 library; if not, write to the Free**  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,**  MA 02111-1307, USA*/#include <stdio.h>#include <stdlib.h>#include <string.h>#include <minigui/common.h>#include <minigui/minigui.h>#include <minigui/gdi.h>#include <minigui/window.h>#include <minigui/control.h>#include <minigui/mgext.h>#include <minigui/mywindows.h>void spinbox_demo (HWND hwnd){    myWinHelpMessage (hwnd, 300, 200,            "About SpinBox control",            "We use the SpinBox control in this Help Message Box.\n\n"            "You can click the up arrow of the control to scroll up "            "the message, and click the down arrow of the control to scroll down. "            "You can also scroll the message by typing ArrowDown and ArrowUp keys.\n\n"            "In your application, you can call 'myWinHelpMessage' function "            "to build a Help Message box like this.\n\n"            "The Help Message Box is useful for some PDA-like applications.\n\n"            "The SpinBox control allways have the fixed width and height. "            "You can read the source of 'ext/control/spinbox.c' to know how to "            "build such a control.\n\n"            "If you want to know how to use this control, please read the "            "source of 'mywindows/helpwin.c' in the MiniGUI source tree.");}

⌨️ 快捷键说明

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