資源簡介
對(High-Level Data Link Control)的實現(xiàn),提供了工具功能,測試HDLC的封包正確性,串口編程中很實用.

代碼片段和文件信息
//?ColorStatic.cpp:?implementation?of?the?CColorStatic?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“ColorStatic.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_DYNAMIC(CColorStatic?CStatic)
//?Map?the?messages
BEGIN_MESSAGE_MAP(CColorStatic?CStatic)
?ON_WM_CTLCOLOR_REFLECT()
END_MESSAGE_MAP()
//?CColorStatic?constructor/destructor
CColorStatic::CColorStatic()
{
????m_clrBack?=?::GetSysColor(COLOR_3DFACE);??
????m_brBkgnd.CreateSolidBrush(m_clrBack);
}
//?CColorStatic?attributes
void?CColorStatic::SetTextColor(COLORREF?clrText)
{
????m_clrText?=?clrText;
????this->Invalidate();
}
//?CColorStatic?overloaded?functions
void?CColorStatic::PreSubclassWindow()
{
????DWORD?dwstyle?=?this->Getstyle();
????::SetWindowLong(this->GetSafeHwnd()?GWL_style?dwstyle?|?SS_NOTIFY);
????CStatic::PreSubclassWindow();
}
//?CColorStatic?message?handlers
HBRUSH?CColorStatic::CtlColor(CDC?*pDC?UINT?nCtlColor)
{
????pDC->SetTextColor(m_clrText);
????pDC->SetBkColor(m_clrBack);
????return?(HBRUSH)m_brBkgnd;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-04-02?10:13??HDLC_Viewer\
?????文件????????1366??2009-01-16?10:26??HDLC_Viewer\ColorStatic.cpp
?????文件?????????820??2009-01-16?10:12??HDLC_Viewer\ColorStatic.h
?????文件????????7010??2010-04-02?10:01??HDLC_Viewer\HDLC.cpp
?????文件????????1865??2010-04-02?10:01??HDLC_Viewer\HDLC.h
?????文件????????1358??2010-04-02?09:50??HDLC_Viewer\HDLC_Viewer.cpp
?????文件????????5374??2010-04-02?09:49??HDLC_Viewer\HDLC_Viewer.dsp
?????文件?????????591??2010-04-02?09:50??HDLC_Viewer\HDLC_Viewer.dsw
?????文件???????61440??2010-04-02?10:11??HDLC_Viewer\HDLC_Viewer.exe
?????文件????????1237??2010-04-02?09:50??HDLC_Viewer\HDLC_Viewer.h
?????文件????????6590??2010-04-02?09:50??HDLC_Viewer\HDLC_Viewer.rc
?????文件???????12815??2010-04-02?09:50??HDLC_Viewer\HDLC_ViewerDlg.cpp
?????文件????????2231??2010-04-02?09:51??HDLC_Viewer\HDLC_ViewerDlg.h
?????文件????????2233??2009-09-18?16:18??HDLC_Viewer\HoverEdit.cpp
?????文件????????1807??2009-09-18?16:15??HDLC_Viewer\HoverEdit.h
?????文件????????8569??2009-09-11?15:58??HDLC_Viewer\mscomm.cpp
?????文件????????3221??2009-09-11?15:58??HDLC_Viewer\mscomm.h
?????文件????????6724??2009-09-07?22:40??HDLC_Viewer\OutPutLog.cpp
?????文件????????1327??2009-03-23?10:17??HDLC_Viewer\OutPutLog.h
?????文件????????1436??2009-09-08?10:26??HDLC_Viewer\OutPutLog_ctrl.h
?????目錄???????????0??2010-04-02?10:13??HDLC_Viewer\res\
?????文件????????1012??2010-04-02?09:51??HDLC_Viewer\resource.h
?????文件???????25214??2010-03-19?17:32??HDLC_Viewer\res\HDLC_Viewer.ico
?????文件?????????404??2009-02-16?10:48??HDLC_Viewer\res\HDLC_Viewer.rc2
?????文件?????????214??2009-02-16?10:48??HDLC_Viewer\StdAfx.cpp
?????文件????????1338??2009-02-16?21:18??HDLC_Viewer\StdAfx.h
?????文件????????1926??2009-01-20?03:05??HDLC_Viewer\TrackControl.h
?????文件????????6841??2009-02-16?11:00??HDLC_Viewer\WorkFunction.cpp
?????文件????????1374??2009-02-16?10:57??HDLC_Viewer\WorkFunction.h
?????文件????????5701??2009-01-20?03:08??HDLC_Viewer\XPButton.cpp
?????文件????????1886??2009-01-20?01:28??HDLC_Viewer\XPButton.h
............此處省略0個文件信息
評論
共有 條評論