spinbox.c

来自「本原码为为《嵌入式Linux应用开发详解》一书的配套代码」· C语言 代码 · 共 31 行

C
31
字号
#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 + =
减小字号Ctrl + -
显示快捷键?