Click here to Skip to main content
15,905,967 members
Articles / Desktop Programming / MFC
Article

Very Nice Text Progress

Rate me:
Please Sign up or sign in to vote.
1.14/5 (64 votes)
25 Mar 2003 80.6K   1.5K   18   15
Very nice text progress.

Sample Image - Splsh162.jpg

Introduction

SharpKnife


class CSplashDlg : public CDialog
{
// Construction
public:
 void SetRange(int iMax);
 void StepIt(void);
 void InitSplash(void);
 CSplashDlg(CWnd* pParent = NULL);   // standard constructor
 void OnDestroy(void);
// Dialog Data
 //{{AFX_DATA(CSplashDlg)
 enum { IDD = IDD_SPLASH };
 CStatic m_ctlProgressText;
 CStatic m_ctlMsg;
 CString m_strProgText;
 //}}AFX_DATA


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

// Implementation
protected:

 // Generated message map functions
 //{{AFX_MSG(CSplashDlg)
 virtual BOOL OnInitDialog();
 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
 //}}AFX_MSG
 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
 DECLARE_MESSAGE_MAP()
private:
 void InitProgressText(CRect rcRect);
 CBitmap m_bmSplash;
 CBrush m_brHollow;
 CSize m_sBitmap;
 int m_iRangeMax;
 int m_iCurCnt;

};

 

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
Web Developer
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralQuality Pin
Davide Calabro27-Mar-03 22:29
Davide Calabro27-Mar-03 22:29 
GeneralHere is a better idea! Pin
Bill SerGio, The Infomercial King26-Mar-03 5:52
Bill SerGio, The Infomercial King26-Mar-03 5:52 
GeneralRe: Here is a better idea! Pin
hector santos26-Mar-03 7:50
hector santos26-Mar-03 7:50 
GeneralRe: Here is a better idea! Pin
Bill SerGio, The Infomercial King26-Mar-03 9:48
Bill SerGio, The Infomercial King26-Mar-03 9:48 
GeneralRe: Here is a better idea! Pin
Swinefeaster28-Mar-03 11:10
Swinefeaster28-Mar-03 11:10 
GeneralDemo programm needs MFC42D.DLL Pin
Konrad Windszus26-Mar-03 5:42
Konrad Windszus26-Mar-03 5:42 
GeneralI think the admin should open a new section on the site... Pin
PixiGreg26-Mar-03 3:34
PixiGreg26-Mar-03 3:34 
GeneralRe: I think the admin should open a new section on the site... Pin
Rui Dias Lopes26-Mar-03 5:32
Rui Dias Lopes26-Mar-03 5:32 
GeneralRe: I think the admin should open a new section on the site... Pin
Jonathan de Halleux26-Mar-03 10:08
Jonathan de Halleux26-Mar-03 10:08 
GeneralReally poor article Pin
Erik Frohne (Work)26-Mar-03 2:31
Erik Frohne (Work)26-Mar-03 2:31 
Sorry, but the makeup of this article didn't impress me.

You just put an unformatted header file into the article body, explaining nothing, not even some motivation why you wrote this simple splashscreen application. The splashscreen dialog class is not reusable, if you want to have something else you will have to make a lot of adaptions. Your code in the zip-file also lacks formatting and a lot of comments.

My conclusion: this article is not suitable as an example or howto. This should not discourage you from writing articles, but please do read the article A Guide To Writing Articles For Code Project (http://www.codeproject.com/scrapbook/WhatIsAGoodArticle.asp[^]) from Marc Clifton as an orientation help for your next article.


Erik

--
The opinion expressed here is solely mine.
GeneralRe: Really poor article Pin
#realJSOP26-Mar-03 2:45
professional#realJSOP26-Mar-03 2:45 
GeneralRe: Really poor article Pin
Erik Frohne (Work)26-Mar-03 2:52
Erik Frohne (Work)26-Mar-03 2:52 
GeneralRe: Really poor article Pin
Bengi27-Mar-03 4:40
Bengi27-Mar-03 4:40 
GeneralRe: Really poor article Pin
Synetech1-Jun-05 14:12
Synetech1-Jun-05 14:12 
GeneralWorks fine Pin
Spolm25-Mar-03 22:33
Spolm25-Mar-03 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.