• 大小: 100KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-23
  • 语言: C/C++
  • 标签: vc音频  

资源简介

vc音频采集vc音频采集vc音频采集vc音频采集vc音频采集vc音频采集vc音频采集

资源截图

代码片段和文件信息

// 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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11015  2005-12-29 09:10  音频信号采集\Hyperlink.cpp

     文件       2923  2002-05-05 10:06  音频信号采集\Hyperlink.h

     文件       3651  2003-10-19 17:09  音频信号采集\ReadMe.txt

     文件      36520  2010-05-25 16:43  音频信号采集\RecordHWnd.aps

     文件       1593  2010-05-25 16:45  音频信号采集\RecordHWnd.clw

     文件       2119  2003-10-19 17:09  音频信号采集\RecordHWnd.cpp

     文件       4308  2010-05-25 11:16  音频信号采集\RecordHWnd.dsp

     文件        545  2005-12-21 17:36  音频信号采集\RecordHWnd.dsw

     文件       1368  2003-10-19 17:09  音频信号采集\RecordHWnd.h

     文件     189440  2010-05-25 16:45  音频信号采集\RecordHWnd.ncb

     文件     107520  2010-05-25 16:45  音频信号采集\RecordHWnd.opt

     文件       1223  2010-05-25 16:35  音频信号采集\RecordHWnd.plg

     文件       5896  2010-05-25 16:43  音频信号采集\RecordHWnd.rc

     文件      15998  2010-05-25 16:36  音频信号采集\RecordHWndDlg.cpp

     文件       2428  2010-05-25 16:12  音频信号采集\RecordHWndDlg.h

     文件       1010  2010-05-25 16:34  音频信号采集\resource.h

     文件        212  2003-10-19 17:09  音频信号采集\StdAfx.cpp

     文件       1077  2003-10-19 17:11  音频信号采集\StdAfx.h

     文件        186  2008-12-29 13:55  音频信号采集\VscodesReadMe.txt

     文件     163840  2010-05-25 12:22  音频信号采集\基于WaveX低级音频函数的实时语音通信.doc

     文件       1078  2003-10-19 17:09  音频信号采集\res\RecordHWnd.ico

     文件        402  2003-10-19 17:09  音频信号采集\res\RecordHWnd.rc2

    ..A.SH.      3072  2006-07-03 19:26  音频信号采集\res\Thumbs.db

     目录          0  2010-05-25 16:45  音频信号采集\res

     目录          0  2010-05-25 16:45  音频信号采集

----------- ---------  ---------- -----  ----

               557424                    25


评论

共有 条评论

相关资源