
_START_ARTICLE_
MiniGUI
_START_SECTION_
发展
_START_PARAGRAPH_
MiniGUI 4.0 正在设计开发当中。
_START_SECTION_
MiniGUI hello world
_START_PARAGRAPH_
MiniGUI hello world以C撰写，这支程序含有视窗，标题为"Hello, World"._NEWLINE_#include <stdio.h>#include <minigui/common.h>#include <minigui/minigui.h>#include <minigui/gdi.h>#include <minigui/window.h>int MiniGUIMain (int argc, const char* argv[]){_NEWLINE_    MSG Msg;_NEWLINE_    HWND hMainWnd;_NEWLINE_    MAINWINCREATE CreateInfo;#ifdef _MGRM_PROCESSES_NEWLINE_    JoinLayer(NAME_DEF_LAYER , "helloworld" , 0 , 0);#endif_NEWLINE_    CreateInfo.dwStyle = _NEWLINE_        WS_VISIBLE | WS_BORDER | WS_CAPTION;_NEWLINE_    CreateInfo.dwExStyle = WS_EX_AUTOSECONDARYDC;_NEWLINE_    CreateInfo.spCaption = "Hello, World";_NEWLINE_    CreateInfo.hMenu = 0;_NEWLINE_    CreateInfo.hCursor = GetSystemCursor(0);_NEWLINE_    CreateInfo.hIcon = 0;_NEWLINE_    CreateInfo.MainWindowProc = DefaultMainWinProc;_NEWLINE_    CreateInfo.lx = 0;_NEWLINE_    CreateInfo.ty = 0;_NEWLINE_    CreateInfo.rx = g_rcScr.right;_NEWLINE_    CreateInfo.by = g_rcScr.bottom;_NEWLINE_    CreateInfo.iBkColor = COLOR_lightwhite;_NEWLINE_    CreateInfo.dwAddData = 0;_NEWLINE_    CreateInfo.hHosting = HWND_DESKTOP;_NEWLINE_    _NEWLINE_    hMainWnd = CreateMainWindow(&CreateInfo);_NEWLINE_    _NEWLINE_    if (hMainWnd == HWND_INVALID)_NEWLINE_        return -1;_NEWLINE__NEWLINE_    while (GetMessage(&Msg, hMainWnd)) {_NEWLINE_        TranslateMessage(&Msg);_NEWLINE_        DispatchMessage(&Msg);_NEWLINE_    }_NEWLINE__NEWLINE_    MainWindowThreadCleanup (hMainWnd);_NEWLINE_    return 0;}