?? maintask.c
字號:
/*
*********************************************************************************************************
* 礐/GUI
* Universal graphic software for embedded applications
*
* (c) Copyright 2002, Micrium Inc., Weston, FL
* (c) Copyright 2000, SEGGER Microcontroller Systeme GmbH
*
* 礐/GUI is protected by international copyright laws. Knowledge of the
* source code may not be used to write a similar product. This file may
* only be used in accordance with a license and should not be redistributed
* in any way. We appreciate your understanding and fairness.
*
* File : MainTask.c
* Purpose : Application program in windows simulator
*********************************************************************************************************
*/
#include "GUI.h"
/*
*******************************************************************
*
* main()
*
*******************************************************************
*/
void MainTask(void) {
WM_HWIN hFrameWin;
GUI_Init();
GUI_SetBkColor(GUI_RED); GUI_Clear();
GUI_Delay(10);
GUI_SetBkColor(GUI_BLUE); GUI_Clear();
GUI_Delay(10);
GUI_SetColor(GUI_WHITE);
WM_SetCreateFlags(WM_CF_MEMDEV);
WM_EnableMemdev(WM_HBKWIN);
WM_SetDesktopColor(GUI_RED);
hFrameWin = FRAMEWIN_Create("Framewin", 0, WM_CF_SHOW, 20, 20, 60, 60);
FRAMEWIN_SetActive(hFrameWin, 1);
FRAMEWIN_SetMoveable(hFrameWin, 1);
GUI_CURSOR_Show();
GUI_Delay(20);
while (1) {
GUI_Delay(20);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -