"004826gi"
This commit is contained in:
parent
690374e55f
commit
f121c682e8
|
@ -1,14 +1,16 @@
|
||||||
//这是一段时钟功能+图标按钮的桌面页面,包括左右两个切换按钮
|
//杩欐槸涓<EFBFBD>娈垫椂閽熷姛鑳<EFBFBD>+鍥炬爣鎸夐挳鐨勬闈㈤〉闈紝鍖呮嫭宸﹀彸涓や釜鍒囨崲鎸夐挳
|
||||||
//时钟位于上方,图标按钮有十个排列在下半部分,左右两侧分别为切换按钮
|
//鏃堕挓浣嶄簬涓婃柟锛屽浘鏍囨寜閽湁鍗佷釜鎺掑垪鍦ㄤ笅鍗婇儴鍒<EFBFBD>,宸﹀彸涓や晶鍒嗗埆涓哄垏鎹㈡寜閽<E5AF9C>
|
||||||
//时钟的固定大小为340*70像素,时钟可以通过wjh_GetClockControl(main_window, 150, 100);创建,150,100为时钟左上角距离窗口x150,y100像素
|
//鏃堕挓鐨勫浐瀹氬ぇ灏忎负340*70鍍忕礌锛屾椂閽熷彲浠ラ<E6B5A0>氳繃wjh_GetClockControl(main_window, 150, 100);鍒涘缓锛<E7BC93>0锛<30>0涓烘椂閽熷乏涓婅璺濈绐楀彛x150锛寉100鍍忕礌
|
||||||
//页面跳转函数均已实现
|
//椤甸潰璺宠浆鍑芥暟鍧囧凡瀹炵幇
|
||||||
#include "stdint.h"
|
#include "stdint.h"
|
||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
#include "gdd.h"
|
#include "gdd.h"
|
||||||
#include "gdd_button.h"
|
#include "gdd_button.h"
|
||||||
#include "wjh_window.h"
|
#include "wjh_window.h"
|
||||||
#include "page.h" // 调用头文件
|
#include "page.h" // 璋冪敤澶存枃浠<E69E83>
|
||||||
|
|
||||||
|
|
||||||
u8 iconname1[][20] = {"address", "camera", "cart", "controller", "location", "music", "picture", "search", "time", "wifi", "table", "barchart"};
|
u8 iconname1[][20] = {"address", "camera", "cart", "controller", "location", "music", "picture", "search", "time", "wifi", "table", "barchart"};
|
||||||
u32 iconflag1 = 0;
|
u32 iconflag1 = 0;
|
||||||
// Button click and paint handlers
|
// Button click and paint handlers
|
||||||
|
@ -67,7 +69,7 @@ static bool_t main_window_paint(struct WindowMsg *pMsg) {
|
||||||
return false;
|
return false;
|
||||||
wjh_setBackBmp(pMsg->hwnd, wjh_Search_BMP("background1"));
|
wjh_setBackBmp(pMsg->hwnd, wjh_Search_BMP("background1"));
|
||||||
|
|
||||||
//通过画圆来记录当前页面,这段代码不要动,颜色也不要改
|
//閫氳繃鐢诲渾鏉ヨ褰曞綋鍓嶉〉闈紝杩欐浠g爜涓嶈鍔紝棰滆壊涔熶笉瑕佹敼
|
||||||
GDD_SetDrawColor(hdc, RGB(200, 200, 200));
|
GDD_SetDrawColor(hdc, RGB(200, 200, 200));
|
||||||
GDD_FillCircle(hdc, 487, 570, 5);
|
GDD_FillCircle(hdc, 487, 570, 5);
|
||||||
GDD_SetDrawColor(hdc, RGB(125, 125, 125));
|
GDD_SetDrawColor(hdc, RGB(125, 125, 125));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user