|
/******************************************************************
News Everywhere 1.0
Copyright (c) 2004 by ����
All rights reserved.
This file is part of NewsEverywhere.
NewsEverywhere is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
NewsEverywhere is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with NewsEverywhere; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For any suggestion or failure report, please contact me by:
e-mail: jonathan1983@126.com
////////////////////////////////////////////////////////////////////////////////
File Name: NewsBar.h
********************************************************************/
#if !defined(AFX_NEWSBAR_H__8B001664_5949_4722_870E_33ADE4404487__INCLUDED_)
#define AFX_NEWSBAR_H__8B001664_5949_4722_870E_33ADE4404487__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NewsBar.h : header file
//
#include "Helper.h"
#include "sdi.h"
/////////////////////////////////////////////////////////////////////////////
// CNewsBar window
class CNewsBar : public CWnd
{
// Construction
public:
CNewsBar();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNewsBar)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CNewsBar();
// Generated message map functions
protected:
//{{AFX_MSG(CNewsBar)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
void SetTitleText(PCTSTR psTitle);
void SetContentMode(BOOL bOn);
void SetTitleMode(BOOL bRoll);
void SetBGMode(BOOL bSet);
CPoint m_ptFrom;
CRect m_rcFrom;
CRect m_rcPrev;
CDC m_hDC;
TITLE* m_pTitle;
int m_nTitle;
int m_nTitleCurPlay;
private:
HICON m_hIconCOff;
HICON m_hIconCOn;
HICON m_hIconTS;
HICON m_hIconTR;
HICON m_hIconLeft;
HICON m_hIconRight;
CPen m_pen;
CBrush m_brush;
CFont m_font;
BOOL m_bBackground;
BOOL m_bTitle;
BOOL m_bContent;
public:
PTSTR m_psText;
HSPEECH m_hTitle;
HSPEECH m_hContent;
HEARCON m_hEarcon;
DWORD* m_pdwStatus;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NEWSBAR_H__8B001664_5949_4722_870E_33ADE4404487__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
A student at Zhejiang University, Zhejiang, China.
Major in Automation.
Now I want to study machine vision and robotics, but I'm really consumed with choices between hardware and software, and between research and engineering.
I'll be glad if you can give some suggestions.