|
/******************************************************************
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
////////////////////////////////////////////////////////////////////////////////
********************************************************************/
#if !defined(HELPER_H_13B7F2D3_0E7C_46B9_B46F_88C2FD820434_INCLUDED)
#define HELPER_H_13B7F2D3_0E7C_46B9_B46F_88C2FD820434_INCLUDED
//////////////////////////////////////////////////////////////
// Included Headers
////////////////////////
//#include "sui32.h"
#include "parser.h"
#include <math.h>
#include <wininet.h>
#include <shellapi.h>
//////////////////////////////////////////////////////////////
// Constants
////////////////////////
#define BGM_FILE "bgm.wav"
#define WIDTH_NEWSBAR 450
#define HEIGHT_NEWSBAR 20
#define MAX_TEXT_SIZE 200*1024
#define TIMER_NEWSBAR 102
#define ELAPSE_TIMER_NEWSBAR 200
#define POSITION_TITLE {-0.5f,0,-0.5f}
#define POSITION_CONTENT {0.5f,0,-0.5f}
#define RESOURCE_FILE "NewsEverywhereMFC.exe"
#define TIMER_PLAY_TITLE 101
#define ELAPSE_TIMER_PLAY_TITLE 1000
#define SHELL_ICON_ID 400
#define MSG_SYSBAR WM_USER+1
// KEY definition
#define KEY_SWITCH_MODE VK_F12
#define KEY_CANCEL VK_ESCAPE
#define KEY_OK VK_RETURN
#define KEY_LEFT VK_LEFT
#define KEY_RIGHT VK_RIGHT
#define KEY_TITLE_DOWN VK_LEFT
#define KEY_TITLE_UP VK_RIGHT
#define KEY_GOTO_PAGE VK_SPACE
#define KEY_SWITCH_TITLE VK_MENU
#define KEY_SWITCH_CONTENT VK_CONTROL
// System status mask
#define STATUS_SELECT_SITE 0x00000001
#define STATUS_SELECT_CATEGORY 0x00000002
#define STATUS_SELECT_SYSMENU 0x00000004
#define STATUS_HOTKEY_INUSE 0x00000008
#define STATUS_PLAY_TITLE 0x00000010
#define STATUS_SELECT_TITLE 0x00000020
#define STATUS_TITLE_DISABLE 0x00010000
#define STATUS_CONTENT_DISABLE 0x00020000
#define STATUS_HOTKEY_DISABLED 0x00040000
#define TITLE_0 10000
#define TITLE_MAX 11000
#define IDS_NO_ITEM "No Item has been parsed. Please select a category."
#define IDS_SYSTIP "News Everywhere"
#define TEST_TYPE_CATEGORY 1
#define TEST_TYPE_CONTENT 2
#define TEST_CATEGORY_URL_REALTIME ("http://localhost/TestWebAlias/realtime.htm")
#define TEST_CATEGORY_URL_STATE ("http://localhost/TestWebAlias/state.htm")
#define TEST_CATEGORY_URL_INTERNATIONAL ("http://localhost/TestWebAlias/international.htm")
#define TEST_CATEGORY_URL_ECONOMIC ("http://localhost/TestWebAlias/economic.htm")
#define TEST_CONTENT_URL_ECONOMIC ("http://localhost/TestWebAlias/economic_content.htm")
//////////////////////////////////////////////////////////////
// Macros (Inline Functions)
////////////////////////
//////////////////////////////////////////////////////////////
// Structures
////////////////////////
//////////////////////////////////////////////////////////////
// Function Prototypes
// [Exported]
////////////////////////
//////////////////////////////////////////////////////////////
// Function Prototypes
// [Non-exported]
////////////////////////
int EnumerateParser();
#endif //!defined(HELPER_H_13B7F2D3_0E7C_46B9_B46F_88C2FD820434_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.