|
#pragma once
#include<afxmt.h>
#include"resource.h"
#include "afxwin.h"
// CExample3_Dlg dialog
class CExample3_Dlg : public CDialog
{
DECLARE_DYNAMIC(CExample3_Dlg)
CEdit StartBox;
CEdit EndBox;
CProgressCtrl ProgressBar;
CStatic StatusText;
int StartFrom, EndTo;
bool m_bIsThreadSuspended;
// See the this class' constructor.
CEvent CancelEvent;
CWinThread *ptrThread;
public:
CExample3_Dlg(CWnd* pParent = NULL); // standard constructor
virtual ~CExample3_Dlg();
// Dialog Data
enum { IDD = IDD_EXAMPLE3_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
LRESULT OnThreadMessage(WPARAM wParam, LPARAM);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedCancel();
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedPause();
CButton m_cPauseButton;
CButton m_cCancelButton;
};
|
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.
Started programming with GwBasic back in 1996 (Those lovely days!). Found the hidden talent!
Touched COBOL and Quick Basic for a while.
Finally learned C and C++ entirely on my own, and fell in love with C++, still in love! Began with Turbo C 2.0/3.0, then to VC6 for 4 years! Finally on VC2008/2010.
I enjoy programming, mostly the system programming, but the UI is always on top of MFC! Quite experienced on other environments and platforms, but I prefer Visual C++. Zeal to learn, and to share!