Click here to Skip to main content
15,896,557 members
Articles / Desktop Programming / WTL

WTL integration of Lightweight HTML layout and rendering engine

Rate me:
Please Sign up or sign in to vote.
3.67/5 (32 votes)
10 Oct 20034 min read 256.2K   4.9K   62  
WTL integration of Lightweight HTML layout and rendering engine
#if !defined(AFX_HTMLAYOUTVIEW_H__DADFDDC3_018D_40E0_9BF3_CC212C5339C9__INCLUDED_)
#define AFX_HTMLAYOUTVIEW_H__DADFDDC3_018D_40E0_9BF3_CC212C5339C9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// HtmLayoutView.h : header file
//

#include "htmlayout.h"

/////////////////////////////////////////////////////////////////////////////
// CHtmLayoutView window

class CHtmLayoutView : public CWnd
{
// Construction
public:
	CHtmLayoutView();

  // create child control requests
  //virtual LRESULT OnCreateControl(LPNMHL_CREATE_CONTROL pnmCreateCtl);
  afx_msg void OnCreateControl ( NMHDR * pNotifyStruct, LRESULT* result );
  // hyperlink notifications
  //virtual LRESULT OnHyperlink(LPNMHL_HYPERLINK pnmHyperlink);
  afx_msg void OnHyperlink( NMHDR * pNotifyStruct, LRESULT* result );
  // load data requests
  //virtual LRESULT OnLoadData(LPNMHL_LOAD_DATA pnmLoadData);
  afx_msg void OnLoadData( NMHDR * pNotifyStruct, LRESULT* result );

// Attributes
public:

// Operations
public:

  BOOL OpenFile(LPCTSTR lpszFileName);
  BOOL LoadHtml(LPCTSTR lpszHtmlText);
  BOOL LoadHtmlResource(LPCTSTR resourceName);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHtmLayoutView)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CHtmLayoutView();

	// Generated message map functions
protected:
	//{{AFX_MSG(CHtmLayoutView)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HTMLAYOUTVIEW_H__DADFDDC3_018D_40E0_9BF3_CC212C5339C9__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.

License

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


Written By
Founder Terra Informatica Software
Canada Canada
Andrew Fedoniouk.

MS in Physics and Applied Mathematics.
Designing software applications and systems since 1991.

W3C HTML5 Working Group, Invited Expert.

Terra Informatica Software, Inc.
http://terrainformatica.com

Comments and Discussions