main.c

来自「MDE 图形引擎」· C语言 代码 · 共 72 行

C
72
字号
/*************************************************************************** * $Id: main.c,v 1.8 2003/08/15 08:45:46 weiym Exp $ *                        main.c  -  description *                           ------------------- *  begin                : Tue Jan 16 18:17:15 CST 2001 *  copyright            : (C) 2001 by 冯大可 *  email                : minx@thtfchain.com ***************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#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/mywindows.h>#include <minigui/filedlg.h>#include "controlpanel.h"int MiniGUIMain (int args, const char* arg[]){#if defined(_LITE_VERSION) && !(_STAND_ALONE)    int i;    const char* layer = NULL;    RECT max_rect = {0, 0, 0, 0};    for (i = 1; i < args; i++) {        if (strcmp (arg[i], "-layer") == 0) {            layer = arg[i + 1];            break;        }    }    GetLayerInfo (layer, &max_rect, NULL, NULL, NULL);    if (JoinLayer (layer, arg[0],                 max_rect.left, max_rect.top,                 max_rect.left + 600,                 max_rect.top + 500) == INV_LAYER_HANDLE) {        printf ("JoinLayer: invalid layer handle.\n");        exit (1);    }    ControlPanel (NULL);#else#ifdef _IME_GB2312    GBIMEWindow (HWND_DESKTOP);#endif    ControlPanel(NULL);#endif    return 0;}#ifndef _LITE_VERSION#include <minigui/dti.c>#endif

⌨️ 快捷键说明

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