Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
David Crow28-Apr-08 3:37
David Crow28-Apr-08 3:37 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
scorpion king28-Apr-08 3:40
scorpion king28-Apr-08 3:40 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
David Crow28-Apr-08 4:00
David Crow28-Apr-08 4:00 
GeneralNo static text in a modeless dialog Pin
piul28-Apr-08 2:28
piul28-Apr-08 2:28 
QuestionRe: No static text in a modeless dialog Pin
Nibu babu thomas28-Apr-08 3:15
Nibu babu thomas28-Apr-08 3:15 
GeneralRe: No static text in a modeless dialog Pin
piul28-Apr-08 3:18
piul28-Apr-08 3:18 
GeneralRe: No static text in a modeless dialog Pin
Nibu babu thomas28-Apr-08 3:23
Nibu babu thomas28-Apr-08 3:23 
GeneralRe: No static text in a modeless dialog Pin
piul28-Apr-08 3:43
piul28-Apr-08 3:43 
The header file:
class CProgressDlg : public CDialog
{
	DECLARE_DYNAMIC(CProgressDlg)

public:
	CProgressDlg(int nNoteNum = 0, CWnd* pParent = NULL);   // standard constructor
	virtual ~CProgressDlg();

	void UpdateBar(int nFoundSoFar = 0)	;
// Dialog Data
	enum { IDD = IDD_PROGDLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CProgressCtrl m_ProgBar;
	int m_nTotNoteNum	;
	BOOL m_bInit	;
};

the source file:
IMPLEMENT_DYNAMIC(CProgressDlg, CDialog)

CProgressDlg::CProgressDlg(int nNoteNum/* = 0*/, CWnd* pParent/* = NULL*/)
	: CDialog(CProgressDlg::IDD, pParent)
{
	m_nTotNoteNum = nNoteNum	;
	m_bInit = FALSE	;
}

CProgressDlg::~CProgressDlg()
{
}

void CProgressDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_PROGRESS1, m_ProgBar);
}

void CProgressDlg::UpdateBar(int nFoundSoFar)
{
	if (!m_bInit)	//Needs initialization
	{
		OnInitDialog()	;
		m_ProgBar.SendMessage(PBM_SETRANGE, 0, MAKELPARAM(0, m_nTotNoteNum)); 
		m_ProgBar.SendMessage(PBM_SETSTEP, (WPARAM) 1, 0);
		m_bInit = TRUE	;
	}
	m_ProgBar.SendMessage(PBM_STEPIT, 0, 0)	;	//Show progress
}

BEGIN_MESSAGE_MAP(CProgressDlg, CDialog)
END_MESSAGE_MAP()

GeneralRe: No static text in a modeless dialog Pin
piul28-Apr-08 3:56
piul28-Apr-08 3:56 
QuestionRe: No static text in a modeless dialog Pin
Rajkumar R28-Apr-08 4:23
Rajkumar R28-Apr-08 4:23 
GeneralRe: No static text in a modeless dialog Pin
Hamid_RT29-Apr-08 1:54
Hamid_RT29-Apr-08 1:54 
QuestionHow to change the Image and Text layout in the CListCtrl Pin
Somnath_Mali28-Apr-08 2:20
Somnath_Mali28-Apr-08 2:20 
GeneralRe: How to change the Image and Text layout in the CListCtrl Pin
Hamid_RT29-Apr-08 1:55
Hamid_RT29-Apr-08 1:55 
GeneralHowTo: Restrict the movement of an (owned ?) WS_POPUP to the client area of its owner (frame window) Pin
CodingWorm28-Apr-08 1:33
CodingWorm28-Apr-08 1:33 
GeneralRe: HowTo: Restrict the movement of an (owned ?) WS_POPUP to the client area of its owner (frame window) [modified] Pin
CPallini28-Apr-08 1:38
mveCPallini28-Apr-08 1:38 
QuestionRe: HowTo: Restrict the movement of an (owned ?) WS_POPUP to the client area of its owner (frame window) Pin
David Crow29-Apr-08 3:03
David Crow29-Apr-08 3:03 
GeneralRe: HowTo: Restrict the movement of an (owned ?) WS_POPUP to the client area of its owner (frame window) Pin
CPallini29-Apr-08 3:16
mveCPallini29-Apr-08 3:16 
GeneralRe: HowTo: Restrict the movement of an (owned ?) WS_POPUP to the client area of its owner (frame window) Pin
David Crow28-Apr-08 4:19
David Crow28-Apr-08 4:19 
GeneralRe: HowTo: Restrict the movement of an (owned ?) WS_POPUP to the client area of its owner (frame window) Pin
CodingWorm29-Apr-08 0:18
CodingWorm29-Apr-08 0:18 
Generalmessage deriven problem Pin
mmj28-Apr-08 1:28
mmj28-Apr-08 1:28 
GeneralRe: message deriven problem Pin
CPallini28-Apr-08 1:33
mveCPallini28-Apr-08 1:33 
GeneralRe: message deriven problem Pin
Rajkumar R28-Apr-08 2:07
Rajkumar R28-Apr-08 2:07 
GeneralCreate HBITMAP from HDC Pin
kutti28-Apr-08 0:59
kutti28-Apr-08 0:59 
GeneralRe: Create HBITMAP from HDC Pin
Rajkumar R28-Apr-08 2:19
Rajkumar R28-Apr-08 2:19 
GeneralRe: Create HBITMAP from HDC Pin
Hamid_RT29-Apr-08 1:47
Hamid_RT29-Apr-08 1:47 

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.