Click here to Skip to main content
15,891,906 members
Articles / Desktop Programming / MFC

CxImage

Rate me:
Please Sign up or sign in to vote.
4.65/5 (949 votes)
15 Feb 2008Zlib13 min read 13.1M   300.6K   1.6K  
CxImage is a C++ class to load, save, display, transform BMP, JPEG, GIF, PNG, TIFF, MNG, ICO, PCX, TGA, WMF, WBMP, JBG, J2K images.
#if !defined(AFX_DLGURL_H__A5267584_6592_11D6_BB82_F6642F586A63__INCLUDED_)
#define AFX_DLGURL_H__A5267584_6592_11D6_BB82_F6642F586A63__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgURL.h : header file
//
#include "xTargetButton.h"

/////////////////////////////////////////////////////////////////////////////
// DlgURL dialog
//const UINT WM_HTTPDOWNLOAD_THREAD_FINISHED = WM_APP + 123;

class DlgURL : public CDialog
{
// Construction
public:
	DlgURL(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(DlgURL)
	enum { IDD = IDD_DWNURL };
	CxTargetButton	m_ok;
	CxTargetButton	m_canc;
	CString	m_url;
	CString m_data;
	long m_size;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DlgURL)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(DlgURL)
	virtual void OnOK();
	afx_msg void OnDestroy();
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	void*   m_hInternetSession;
	void*   m_hHttpConnection;
	void*   m_hHttpFile;

	BOOL    m_bAbort;
	BOOL    m_bSafeToClose;
	CString m_sError;

	void SetStatus(LPCSTR message);
	void ThreadError(LPCSTR message);
	LRESULT OnThreadFinished(WPARAM wParam);
};

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

#endif // !defined(AFX_DLGURL_H__A5267584_6592_11D6_BB82_F6642F586A63__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, along with any associated source code and files, is licensed under The zlib/libpng License


Written By
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions