Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: need help in MFC Pin
Aescleal17-May-12 22:00
Aescleal17-May-12 22:00 
GeneralRe: need help in MFC Pin
CPallini17-May-12 21:31
mveCPallini17-May-12 21:31 
AnswerRe: need help in MFC Pin
CPallini16-May-12 22:48
mveCPallini16-May-12 22:48 
GeneralRe: need help in MFC Pin
jawadali47717-May-12 0:21
jawadali47717-May-12 0:21 
QuestionRe: need help in MFC Pin
CPallini17-May-12 0:33
mveCPallini17-May-12 0:33 
AnswerRe: need help in MFC Pin
jawadali47717-May-12 17:35
jawadali47717-May-12 17:35 
GeneralRe: need help in MFC Pin
CPallini17-May-12 21:28
mveCPallini17-May-12 21:28 
QuestionCall control from static method Pin
_Flaviu16-May-12 5:00
_Flaviu16-May-12 5:00 
I have an dialog with two static methods :
C++
// MyDialog.h
static void StartSomething();
static void EndSomething();

// MyDialog.cpp
void CMyDialog::StartSomething()
{
	//
	GetDlgItem(IDOK)->EnableWindow(FALSE); // <-- disable OK button
}

void CMyDialog::EndSomething()
{
	//
	GetDlgItem(IDOK)->EnableWindow(); // <-- enable OK button
}


How can I disable/enable dialog's OK button from static dialog methods ?

Thank you.
AnswerRe: Call control from static method Pin
Chris Losinger16-May-12 5:18
professionalChris Losinger16-May-12 5:18 
GeneralRe: Call control from static method Pin
enhzflep16-May-12 6:17
enhzflep16-May-12 6:17 
GeneralRe: Call control from static method Pin
_Flaviu16-May-12 19:11
_Flaviu16-May-12 19:11 
GeneralRe: Call control from static method Pin
_Flaviu16-May-12 7:37
_Flaviu16-May-12 7:37 
GeneralRe: Call control from static method Pin
Chris Losinger16-May-12 7:43
professionalChris Losinger16-May-12 7:43 
AnswerRe: Call control from static method Pin
Richard MacCutchan16-May-12 21:09
mveRichard MacCutchan16-May-12 21:09 
GeneralRe: Call control from static method Pin
_Flaviu17-May-12 20:34
_Flaviu17-May-12 20:34 
GeneralRe: Call control from static method Pin
Richard MacCutchan17-May-12 22:17
mveRichard MacCutchan17-May-12 22:17 
QuestionSending Data to Excel with C++ Pin
keane209716-May-12 4:47
keane209716-May-12 4:47 
QuestionRe: Sending Data to Excel with C++ Pin
David Crow16-May-12 7:21
David Crow16-May-12 7:21 
AnswerRe: Sending Data to Excel with C++ Pin
keane209716-May-12 8:04
keane209716-May-12 8:04 
AnswerRe: Sending Data to Excel with C++ Pin
enhzflep16-May-12 7:50
enhzflep16-May-12 7:50 
GeneralRe: Sending Data to Excel with C++ Pin
keane209716-May-12 8:05
keane209716-May-12 8:05 
GeneralRe: Sending Data to Excel with C++ Pin
enhzflep16-May-12 8:21
enhzflep16-May-12 8:21 
AnswerRe: Sending Data to Excel with C++ Pin
enhzflep28-May-12 3:31
enhzflep28-May-12 3:31 
QuestionMFC client view rectangle size? Pin
Vaclav_16-May-12 4:42
Vaclav_16-May-12 4:42 
AnswerRe: MFC client view rectangle size? Pin
_Flaviu16-May-12 5:11
_Flaviu16-May-12 5:11 

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.