91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

利用VC6.0開發,獲取系統時間并顯示的簡單MFC應用程序,淺顯易懂,簡單美觀,學習C++語言和VC編程的好材料

資源截圖

代碼片段和文件信息

/*-----------------------------------------
???DIGCLOCK.c?--?Digital?Clock
?????????????????(c)?Charles?Petzold?1998
??-----------------------------------------*/

#include?

#define?ID_TIMER????1

LRESULT?CALLBACK?WndProc?(HWND?UINT?WPARAM?LPARAM)?;

int?WINAPI?WinMain?(HINSTANCE?hInstance?HINSTANCE?hPrevInstance
????????????????????PSTR?szCmdLine?int?iCmdShow)
{
?????static?TCHAR?szAppName[]?=?TEXT?(“DigClock“)?;
?????HWND?????????hwnd?;
?????MSG??????????msg?;
?????WNDCLASS?????wndclass?;

?????wndclass.style?????????=?CS_HREDRAW?|?CS_VREDRAW?;
?????wndclass.lpfnWndProc???=?WndProc?;
?????wndclass.cbClsExtra????=?0?;
?????wndclass.cbWndExtra????=?0?;
?????wndclass.hInstance?????=?hInstance?;
?????wndclass.hIcon?????????=?LoadIcon?(NULL?IDI_APPLICATION)?;
?????wndclass.hCursor???????=?LoadCursor?(NULL?IDC_ARROW)?;
?????wndclass.hbrBackground?=?(HBRUSH)?GetStockobject?(WHITE_BRUSH)?;
?????wndclass.lpszMenuName??=?NULL?;
?????wndclass.lpszClassName?=?szAppName?;

?????if?(!RegisterClass?(&wndclass))
?????{
??????????MessageBox?(NULL?TEXT?(“Program?requires?Windows?NT!“)?
??????????????????????szAppName?MB_IConerror)?;
??????????return?0?;
?????}

?????hwnd?=?CreateWindow?(szAppName?TEXT?(“Digital?Clock“)
??????????????????????????WS_OVERLAPPEDWINDOW
??????????????????????????CW_USEDEFAULT?CW_USEDEFAULT
??????????????????????????CW_USEDEFAULT?CW_USEDEFAULT
??????????????????????????NULL?NULL?hInstance?NULL)?;

?????ShowWindow?(hwnd?iCmdShow)?;
?????UpdateWindow?(hwnd)?;

?????while?(GetMessage?(&msg?NULL?0?0))
??????????{
??????????TranslateMessage?(&msg)?;
??????????DispatchMessage?(&msg)?;
??????????}
?????return?msg.wParam?;
?????}

void?DisplayDigit?(HDC?hdc?int?iNumber)
{
?????static?BOOL??fSevenSegment?[10][7]?=?{
?????????????????????????1?1?1?0?1?1?1?????//?0
?????????????????????????0?0?1?0?0?1?0?????//?1
?????????????????????????1?0?1?1?1?0?1?????//?2
?????????????????????????1?0?1?1?0?1?1?????//?3
?????????????????????????0?1?1?1?0?1?0?????//?4
?????????????????????????1?1?0?1?0?1?1?????//?5
?????????????????????????1?1?0?1?1?1?1?????//?6
?????????????????????????1?0?1?0?0?1?0?????//?7
?????????????????????????1?1?1?1?1?1?1?????//?8
?????????????????????????1?1?1?1?0?1?1?}?;??//?9
?????static?POINT?ptSegment?[7][6]?=?{
??????????????????????????7??6??11??2??31??2??35??6??31?10??11?10
??????????????????????????6??7??10?11??10?31???6?35???2?31???2?11
?????????????????????????36??7??40?11??40?31??36?35??32?31??32?11
??????????????????????????7?36??11?32??31?32??35?36??31?40??11?40
??????????????????????????6?37??10?41??10?61???6?65???2?61???2?41
?????????????????????????36?37??40?41??40?61??36?65??32?61??32?41
??????????????????????????7?66??11?62??31?62??35?66??31?70??11?70?}?;

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????155710??1998-10-09?17:00??DigClock\Debug\DigClock.exe

?????文件??????18832??2012-09-23?21:41??DigClock\Debug\DigClock.obj

?????文件????2778784??2012-09-23?21:41??DigClock\Debug\DigClock.pch

?????文件??????41984??2012-09-30?20:25??DigClock\Debug\vc60.idb

?????文件??????61440??2012-09-23?21:41??DigClock\Debug\vc60.pdb

?????文件???????6083??1998-10-09?17:00??DigClock\DigClock.c

?????文件?????????84??1998-10-09?17:00??DigClock\DigClock.dep

?????文件???????3624??1998-10-09?17:00??DigClock\DigClock.dsp

?????文件????????539??1998-10-09?17:00??DigClock\DigClock.dsw

?????文件???????4053??1998-10-09?17:00??DigClock\DigClock.mak

?????文件??????41984??2012-09-30?20:25??DigClock\DigClock.ncb

?????文件??????48640??2012-09-30?20:25??DigClock\DigClock.opt

?????文件????????840??2012-09-30?20:25??DigClock\DigClock.plg

?????文件??????24576??1998-10-09?17:00??DigClock\Release\DigClock.exe

?????目錄??????????0??2012-09-30?20:25??DigClock\Debug

?????目錄??????????0??2012-09-30?20:25??DigClock\Release

?????目錄??????????0??2012-09-30?20:25??DigClock

-----------?---------??----------?-----??----

??????????????3187173????????????????????17


評論

共有 條評論