📄 main.c
字号:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "asixwin.h"
#define PHY_LCD_W 240
#define PHY_LCD_H 320
#define LCD_WIDTH PHY_LCD_W
main()
{
U32 shellwin, shellwin2;
U32 sortlist;
U32 tskbar;
U32 prev;
U32 next;
U32 next_child;
shellwin = CreateWindow(WNDCLASS_WIN, "\\窗口", WS_CAPTION | WS_BORDER|WS_SYSMENU, 0, 0, PHY_LCD_W, PHY_LCD_H, 0, 0, NULL);
sortlist = CreateWindow(WNDCLASS_LIST, "\\下拉框", WS_CHILD|LBS_POPUP, 20, 25, LCD_WIDTH-100, 20, shellwin, 0, NULL);
prev = CreateWindow(WNDCLASS_BUTTON, "\\前", WS_CHILD|BS_ICON|BS_FLAT, 20+LCD_WIDTH-100+10, 25, 20, 20, shellwin, 0, (void *)NULL);
next = CreateWindow(WNDCLASS_BUTTON, "\\后", WS_CHILD|BS_ICON|BS_FLAT, 20+LCD_WIDTH-100+10+20+5, 25, 20, 20, shellwin, 0, (void *)NULL);
next_child = CreateWindow(WNDCLASS_BUTTON, "\\后", WS_CHILD|BS_ICON|BS_FLAT, 20+LCD_WIDTH-100+10+20+5, 25, 20, 20, next, 0, (void *)NULL);
shellwin2 = CreateWindow(WNDCLASS_WIN, "\\窗口2", WS_CAPTION | WS_BORDER|WS_SYSMENU, 0, 0, PHY_LCD_W, PHY_LCD_H, 0, 0, NULL);
DestroyWindow(shellwin2);
DestroyWindow(shellwin);
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -