1 //++++++++++++++++++++++++++
2 // EasyWinApp.cpp
3 //++++++++++++++++++++++++++
4
5 ///#include header
6 #include <windows.h>
7 #include <time.h>
8 #include <stdio.h>
9
10 ///main_in
11 main()
12 {
13 ///Prepare format
14 time_t t;
15 time(&t);
16 char caCurtime[128]="";
17 char caAdvice[128]="Take A Break ! , , , , ,";//
18 sprintf(caCurtime,"%s", ctime(&t));
19
20 ///Display window
21 MessageBox(0,caAdvice, caCurtime ,MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
22
23 ///main_end
24 } //main_end
25
This Blog is dedicated to Sir Johnson Lin
超簡單視窗應用程式 用排程顯示提醒時間 Super tiny Windows APP : use Task Scheduler display current time on MessageBox
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言