Click here to Skip to main content
15,893,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: New Project Pin
molesworth6-Aug-09 11:14
molesworth6-Aug-09 11:14 
GeneralRe: New Project Pin
MrMcIntyre7-Aug-09 0:30
MrMcIntyre7-Aug-09 0:30 
GeneralRe: New Project Pin
molesworth7-Aug-09 4:41
molesworth7-Aug-09 4:41 
QuestionView with Larger Dimension Pin
Madhu_Rani5-Aug-09 2:45
Madhu_Rani5-Aug-09 2:45 
QuestionThe new Office2007 Ribbonbar - Are there pushlike checkboxes for it? Pin
sashoalm5-Aug-09 2:01
sashoalm5-Aug-09 2:01 
AnswerRe: The new Office2007 Ribbonbar - Are there pushlike checkboxes for it? Pin
sashoalm5-Aug-09 4:39
sashoalm5-Aug-09 4:39 
QuestionRe: The new Office2007 Ribbonbar - Are there pushlike checkboxes for it? Pin
AksharRoop11-Jun-10 3:13
AksharRoop11-Jun-10 3:13 
Questiondisabling finish button on property sheet wizard Pin
si_695-Aug-09 0:04
si_695-Aug-09 0:04 
Hi
Can anyone tell me how i can disable the finish button on a property sheet wizard ?

on my property page i initally define the buttons like

BOOL CPage::OnSetActive()
{
	CWizard* pParent = (CWizard*)GetParent();
	ASSERT_KINDOF(CWizard, pParent);
	pParent->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);

	return CPropertyPage::OnSetActive();
}


I then want to disable the finish button until a certain task has completed

i.e

void CPage::OnBnClickedBstart()
{
   GetDlgItem(ID_WIZFINISH)->EnableWindow(FALSE);
   DoSomething();
GetDlgItem(ID_WIZFINISH)->EnableWindow(TRUE);
 
}


i have also tried adding

CWnd *pWnd = GetDlgItem (ID_WIZFINISH);
    pWnd->EnableWindow(FALSE);


but get the same problem

Can anyone help at all

thanks

Simon
AnswerRe: disabling finish button on property sheet wizard Pin
_AnsHUMAN_ 5-Aug-09 0:13
_AnsHUMAN_ 5-Aug-09 0:13 
QuestionCompiler error when defining enum for registry Pin
sunny_vc4-Aug-09 23:53
sunny_vc4-Aug-09 23:53 
AnswerRe: Compiler error when defining enum for registry Pin
Code-o-mat5-Aug-09 0:09
Code-o-mat5-Aug-09 0:09 
GeneralRe: Compiler error when defining enum for registry Pin
sunny_vc5-Aug-09 0:36
sunny_vc5-Aug-09 0:36 
Questionwcstombs is not working Pin
Rakesh54-Aug-09 23:16
Rakesh54-Aug-09 23:16 
AnswerRe: wcstombs is not working Pin
n1pabs4-Aug-09 23:34
n1pabs4-Aug-09 23:34 
GeneralRe: wcstombs is not working Pin
Rakesh54-Aug-09 23:40
Rakesh54-Aug-09 23:40 
AnswerRe: wcstombs is not working Pin
Souldrift4-Aug-09 23:44
Souldrift4-Aug-09 23:44 
GeneralRe: wcstombs is not working Pin
Rakesh54-Aug-09 23:50
Rakesh54-Aug-09 23:50 
GeneralRe: wcstombs is not working Pin
Souldrift4-Aug-09 23:51
Souldrift4-Aug-09 23:51 
GeneralRe: wcstombs is not working Pin
Rakesh55-Aug-09 0:04
Rakesh55-Aug-09 0:04 
GeneralRe: wcstombs is not working Pin
Souldrift5-Aug-09 0:13
Souldrift5-Aug-09 0:13 
GeneralRe: wcstombs is not working Pin
Rakesh55-Aug-09 0:53
Rakesh55-Aug-09 0:53 
GeneralRe: wcstombs is not working Pin
Souldrift5-Aug-09 2:13
Souldrift5-Aug-09 2:13 
AnswerRe: wcstombs is not working Pin
CPallini4-Aug-09 23:55
mveCPallini4-Aug-09 23:55 
GeneralRe: wcstombs is not working Pin
n1pabs5-Aug-09 5:03
n1pabs5-Aug-09 5:03 
QuestionRe: wcstombs is not working Pin
David Crow5-Aug-09 3:00
David Crow5-Aug-09 3:00 

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.