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

Function to load a bitmap on a dialog

Rate me:
Please Sign up or sign in to vote.
1.31/5 (21 votes)
6 Apr 2006CPOL 61.9K   1.8K   13  
Here is a function to load a bitmap on any dialog.
// SDlg.h: interface for the SDlg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SDLG_H__48FBC0C9_C38D_4C6E_AA20_F810C4FB0370__INCLUDED_)
#define AFX_SDLG_H__48FBC0C9_C38D_4C6E_AA20_F810C4FB0370__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class SDlg :  
	public CBitmapButton  
{
public:
	bool MakeButton(CString st,UINT Resource, UINT ResourceSel = 0, UINT ResourceFocus = 0,UINT ResourceDisabled = 0  );
	void RelayEvent(UINT message, WPARAM wParam, LPARAM lParam);
	CToolTipCtrl m_tooltip;
	void SetToolTipText(CString s);
	SDlg();
	virtual ~SDlg();
protected:
	
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	DECLARE_MESSAGE_MAP()

};

#endif // !defined(AFX_SDLG_H__48FBC0C9_C38D_4C6E_AA20_F810C4FB0370__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 Code Project Open License (CPOL)


Written By
Web Developer
India India
This is Saday Chand Sarkar , New in MFC world.
Working in Trek Technology Pte.Ltd.

Comments and Discussions