Click here to Skip to main content
15,884,388 members
Articles / Desktop Programming / MFC

Easy Profiler - Compile-time Profiler for C++

Rate me:
Please Sign up or sign in to vote.
4.94/5 (34 votes)
14 Nov 2009Apache23 min read 121.8K   5.1K   154  
Easily instrument your code, visualize, interpret results, track optimization, compare and decide.
// XHtmlDrawLink.h  Version 1.2 - article available at www.codeproject.com
//
// Author:  Hans Dietrich
//          hdietrich@gmail.com
//
// License:
//     This software is released into the public domain.  You are free to use
//     it in any way you like, except that you may not sell this source code.
//
//     This software is provided "as is" with no expressed or implied warranty.
//     I accept no liability for any damage or loss of business that this 
//     software may cause.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef XHTMLDRAWLINK_H
#define XHTMLDRAWLINK_H

#include "XHtmlDraw.h"

class CXHtmlDrawLink
{
// ctor
public:
	CXHtmlDrawLink();
	virtual ~CXHtmlDrawLink();

// Operations
public:
	BOOL	GotoURL(LPCTSTR url, int showcmd, LPARAM lParam);
	BOOL	ProcessAppCommand(LPCTSTR lpszCommand, LPARAM lParam);
	void	SetAppCommands(CXHtmlDraw::XHTMLDRAW_APP_COMMAND * paAppCommands, 
				int nAppCommands);
	BOOL	SetLinkCursor();

// Implementation
protected:
    HCURSOR		m_hLinkCursor;		// cursor for links
	int			m_nAppCommands;
	CXHtmlDraw::XHTMLDRAW_APP_COMMAND * m_paAppCommands;

	LONG	GetRegKey(HKEY key, LPCTSTR subkey, LPTSTR lpData);
	void	SetDefaultCursor();
};

#endif //XHTMLDRAWLINK_H

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.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Technical Lead
Tunisia Tunisia
Services:
http://www.pushframework.com/?page_id=890

Comments and Discussions