Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Showing dialogs within a thread Pin
ilgale25-Apr-06 22:35
ilgale25-Apr-06 22:35 
GeneralRe: Showing dialogs within a thread Pin
Cedric Moonen25-Apr-06 22:43
Cedric Moonen25-Apr-06 22:43 
GeneralRe: Showing dialogs within a thread Pin
ilgale25-Apr-06 23:51
ilgale25-Apr-06 23:51 
AnswerRe: Showing dialogs within a thread Pin
Nibu babu thomas25-Apr-06 22:23
Nibu babu thomas25-Apr-06 22:23 
GeneralRe: Showing dialogs within a thread Pin
ilgale25-Apr-06 22:37
ilgale25-Apr-06 22:37 
GeneralRe: Showing dialogs within a thread Pin
Nibu babu thomas25-Apr-06 23:11
Nibu babu thomas25-Apr-06 23:11 
GeneralRe: Showing dialogs within a thread Pin
ilgale26-Apr-06 0:24
ilgale26-Apr-06 0:24 
Questionwhen use a button on dialog, i get trouble Pin
samfromcn25-Apr-06 22:05
samfromcn25-Apr-06 22:05 
there is a button uses IDC_BTN1 on my dialog, I write it's OnClick() function like follow code:

CMyDialog::OnBtn1Click()
{
m_bState = !m_bState; // remember whether the
// button highlights;
m_btn1.SetState(m_bState); // set the button's state
}

there is another button uses IDC_BTN2 on my dialog, the problem is when I click m_btn2, if m_btn1 still highlights, the OnClick function of m_btn1 will be called. This is not what I want.

Someone may tell me how to prevent this from happenning again.

thanks a lotCool | :cool:
AnswerRe: when use a button on dialog, i get trouble Pin
Cedric Moonen25-Apr-06 22:09
Cedric Moonen25-Apr-06 22:09 
GeneralRe: when use a button on dialog, i get trouble Pin
samfromcn25-Apr-06 22:29
samfromcn25-Apr-06 22:29 
GeneralRe: when use a button on dialog, i get trouble Pin
Cedric Moonen25-Apr-06 22:34
Cedric Moonen25-Apr-06 22:34 
GeneralRe: when use a button on dialog, i get trouble Pin
samfromcn25-Apr-06 22:47
samfromcn25-Apr-06 22:47 
QuestionRe: when use a button on dialog, i get trouble Pin
David Crow26-Apr-06 3:08
David Crow26-Apr-06 3:08 
AnswerRe: when use a button on dialog, i get trouble Pin
Ryan Binns26-Apr-06 2:26
Ryan Binns26-Apr-06 2:26 
AnswerRe: when use a button on dialog, i get trouble Pin
samfromcn26-Apr-06 17:41
samfromcn26-Apr-06 17:41 
QuestionHow to use internal command of command prompt without typing it Pin
kflrei25-Apr-06 22:02
kflrei25-Apr-06 22:02 
AnswerRe: How to use internal command of command prompt without typing it Pin
Nibu babu thomas25-Apr-06 22:19
Nibu babu thomas25-Apr-06 22:19 
GeneralRe: How to use internal command of command prompt without typing it Pin
kflrei27-Apr-06 0:17
kflrei27-Apr-06 0:17 
QuestionRecording the audio from the devices Pin
atimpoo25-Apr-06 21:22
atimpoo25-Apr-06 21:22 
AnswerRe: Recording the audio from the devices Pin
normanS26-Apr-06 2:46
normanS26-Apr-06 2:46 
QuestionMDI Pin
Smith#25-Apr-06 21:17
Smith#25-Apr-06 21:17 
AnswerRe: MDI Pin
Nibu babu thomas25-Apr-06 21:48
Nibu babu thomas25-Apr-06 21:48 
GeneralRe: MDI Pin
Smith#26-Apr-06 0:29
Smith#26-Apr-06 0:29 
AnswerRe: MDI Pin
Iain Clarke, Warrior Programmer25-Apr-06 22:05
Iain Clarke, Warrior Programmer25-Apr-06 22:05 
AnswerRe: MDI Pin
Smith#26-Apr-06 0:37
Smith#26-Apr-06 0:37 

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.