資源簡介
用于錄音 ,適用于語言識別,說話人識別,錄音程序,可直接調用

代碼片段和文件信息
//?Hyperlink.cpp?:?implementation?file
//
//?Hyperlink?static?control.?Will?open?the?default?browser?with?the?given?URL
//?when?the?user?clicks?on?the?link.
//
//?Copyright?(C)?1997?1998?Chris?Maunder?(chrismaunder@codeguru.com)
//?All?rights?reserved.?May?not?be?sold?for?profit.
//
//?Thanks?to?P錶?K.?T鴑der?for?auto-size?and?window?caption?changes.
//
//?“GotoURL“?function?by?Stuart?Patterson
//?As?seen?in?the?August?1997?Windows?Developer‘s?Journal.
//?Copyright?1997?by?Miller?Freeman?Inc.?All?rights?reserved.
//?Modified?by?Chris?Maunder?to?use?TCHARs?instead?of?chars.
//
//?“Default?hand?cursor“?from?Paul?DiLascia‘s?Jan?1998?MSJ?article.
//
#include?“stdafx.h“
#include?“Hyperlink.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
#define?TOOLTIP_ID?1
BEGIN_MESSAGE_MAP(CHyperlink?CStatic)
????//{{AFX_MSG_MAP(CHyperlink)
????ON_CONTROL_REFLECT(STN_CLICKED?onclicked)
????ON_WM_CTLCOLOR_REFLECT()
ON_WM_TIMER()
????ON_WM_SETCURSOR()
ON_WM_DESTROY()
????//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CHyperlink
CHyperlink::CHyperlink()
{
????m_hlinkCursor???????=?NULL;?????????????????//?No?cursor?as?yet
????m_crlinkColor??????=?RGB(??0???0?255);???//?Blue
????m_crVisitedColor???=?RGB(?85??26?139);???//?Purple
????m_crHoverColor?????=?RGB(?255??0???0);???//?Red
????m_bOverControl??????=?FALSE;????????????????//?Cursor?not?yet?over?control
????m_bVisited??????????=?FALSE;????????????????//?Hasn‘t?been?visited?yet.
????m_bUnderline????????=?TRUE;?????????????????//?Underline?the?link?
????m_bAdjustToFit??????=?TRUE;?????????????????//?Resize?the?window?to?fit?the?text?
????m_strURL.Empty();
}
CHyperlink::~CHyperlink()
{
m_Font.Deleteobject();
if?(m_hlinkCursor)
DestroyCursor(m_hlinkCursor);
}
/////////////////////////////////////////////////////////////////////////////
//?CHyperlink?message?handlers
BOOL?CHyperlink::PreTranslateMessage(MSG*?pMsg)?
{
????m_ToolTip.RelayEvent(pMsg);
????return?CStatic::PreTranslateMessage(pMsg);
}
void?CHyperlink::onclicked()
{
m_bVisited?=?TRUE;?//(result?>?HINSTANCE_ERROR);
SetVisited(); ?//?Repaint?to?show?visited?Color
GotoURL(m_strURL?SW_SHOW);
}
HBRUSH?CHyperlink::CtlColor(CDC*?pDC?UINT)?
{
????if?(m_bOverControl)
????????pDC->SetTextColor(m_crHoverColor);
????else?if?(m_bVisited)
????????pDC->SetTextColor(m_crVisitedColor);
????else
????????pDC->SetTextColor(m_crlinkColor);
????//?transparent?text.
????pDC->SetBkMode(TRANSPARENT);
????return?(HBRUSH)GetStockobject(NULL_BRUSH);
}
BOOL?CHyperlink::OnSetCursor(CWnd*?/*pWnd*/?UINT?/*nHitTest*/?UINT?/*message*/)?
{
????if?(m_hlinkCursor)
????{
????????::SetCursor(m_hlinkCursor);
????????return?TRUE;
????}
????return?FALSE;
}
void?CHyperlink::PreSubclassWindow()?
{
????//?We?want?to?get?mouse?clicks?via?STN_CLIC
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????163??2006-10-18?15:39??錄音機\錄音機\Clear.bat
?????文件??????11013??2006-06-07?21:54??錄音機\錄音機\Hyperli
?????文件???????2923??2002-05-05?10:06??錄音機\錄音機\Hyperli
?????文件?????368640??2006-10-26?21:06??錄音機\錄音機\MP3Enc.dll
?????文件???????3105??2006-10-26?21:06??錄音機\錄音機\MP3Enc.exp
?????文件???????5381??2006-10-26?18:13??錄音機\錄音機\MP3Enc.h
?????文件???????6042??2006-10-26?21:06??錄音機\錄音機\MP3Enc.lib
?????文件???????7979??2010-03-03?14:53??錄音機\錄音機\MP3Inf.cpp
?????文件???????1899??2006-10-26?20:09??錄音機\錄音機\MP3Inf.h
?????文件?????536576??2008-04-14?20:00??錄音機\錄音機\msado15.dll
?????文件???????3543??2006-10-18?15:39??錄音機\錄音機\ReadMe.txt
?????文件???????1078??2006-10-18?15:39??錄音機\錄音機\res\Test.ico
?????文件????????396??2006-10-18?15:39??錄音機\錄音機\res\Test.rc2
?????文件???????2605??2010-02-26?17:03??錄音機\錄音機\resource.h
?????文件?????667648??2010-02-26?13:53??錄音機\錄音機\RxwUploadLib.dll
?????文件????????206??2006-10-18?15:39??錄音機\錄音機\StdAfx.cpp
?????文件???????1257??2010-03-01?14:36??錄音機\錄音機\StdAfx.h
?????文件??????28628??2010-03-01?13:55??錄音機\錄音機\Test.aps
?????文件???????4056??2010-03-02?15:34??錄音機\錄音機\Test.clw
?????文件???????2035??2006-10-24?22:18??錄音機\錄音機\Test.cpp
?????文件???????4441??2010-02-25?14:51??錄音機\錄音機\Test.dsp
?????文件????????531??2006-10-24?12:25??錄音機\錄音機\Test.dsw
?????文件???????1345??2010-02-26?10:53??錄音機\錄音機\Test.h
?????文件??????57856??2010-03-02?15:34??錄音機\錄音機\Test.opt
?????文件???????1124??2010-03-02?15:32??錄音機\錄音機\Test.plg
?????文件??????25145??2010-02-26?17:03??錄音機\錄音機\Test.rc
?????文件????????872??2010-02-26?13:17??錄音機\錄音機\Test.sln
?????文件??????17920??2010-03-03?14:32??錄音機\錄音機\Test.suo
?????文件???????8512??2010-02-26?17:03??錄音機\錄音機\Test.vcproj
?????文件???????1427??2010-02-26?17:27??錄音機\錄音機\Test.vcproj.PC-201002260945.Administrator.user
............此處省略9個文件信息
- 上一篇:局域網聊天室資源百度云鏈接
- 下一篇:md5算法流程圖
評論
共有 條評論