Click here to Skip to main content
15,892,737 members
Articles / Programming Languages / C++

3G Modem Internet Dialer

Rate me:
Please Sign up or sign in to vote.
4.90/5 (88 votes)
13 Jul 2011CPOL7 min read 776.4K   65.9K   192  
3G Modem Internet Dialer
#pragma once


// CColorStatic

class CCustomStatic : public CWnd
{
	DECLARE_DYNAMIC(CCustomStatic)

public:
	CCustomStatic();
	virtual ~CCustomStatic();

	void SetTextColor(COLORREF crColor);
	void SetBold(bool bBold);
	void SetItalic(bool bItalic);
	void SetHeight(int iHeight);
	void SetAlignmentCenter();
	void SetAlignmentRight();
	void SetAlignmentLeft();
	void SetWindowText(LPCTSTR lpszString);
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);

private:
	COLORREF m_crTextColor;
	CString m_sFont;
	CString m_sText;
	int m_iHeight;
	int m_iBold;
	bool m_bItalic;
	bool m_bAlignmentCenter;
	bool m_bAlignmentRight;
	bool m_bAlignmentLeft;


protected:
	DECLARE_MESSAGE_MAP()


};


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
Software Developer
United States United States
I love coding with C++. I always split my free time between coding and gaming Smile | :)

Comments and Discussions