Click here to Skip to main content
15,927,345 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get rid of this ERROR Pin
pl_kode28-Apr-08 4:16
pl_kode28-Apr-08 4:16 
GeneralRe: How to get rid of this ERROR Pin
cagespear28-Apr-08 8:07
cagespear28-Apr-08 8:07 
GeneralRe: How to get rid of this ERROR Pin
pl_kode28-Apr-08 17:35
pl_kode28-Apr-08 17:35 
GeneralRe: How to get rid of this ERROR Pin
Rajkumar R28-Apr-08 19:19
Rajkumar R28-Apr-08 19:19 
Questionhow to get information about plug-n-play devices Pin
vijay.victory28-Apr-08 3:07
vijay.victory28-Apr-08 3:07 
AnswerRe: how to get information about plug-n-play devices Pin
JudyL_MD28-Apr-08 6:48
JudyL_MD28-Apr-08 6:48 
GeneralSet the default export path for Crystal Reports [modified] Pin
AeJai28-Apr-08 2:47
AeJai28-Apr-08 2:47 
GeneralStrange behavior / Click events on disabled button get queued and process later.. Pin
scorpion king28-Apr-08 2:45
scorpion king28-Apr-08 2:45 
Hi All, Look at the following code snippet. My aim is to disable the button for some time say 2 seconds and enable it thereafter. What i noticed if i repeatedly click the button before 2 seconds lapsed then the all clicks i did get queued even the button itself was disabled at the very first click. The result of above said is that the all queued events get called one by one. Which is not desirable and i am able to notice as many traces as the clicks i did before 2 secs in my output window.

my aim is simple. I just don't want the button's handler to be called after the same gets disabled.

void CMYDlg::OnMyButton()
{
m_mybtn.EnableWindow(false);//disable button on its own click handler
Sleep(3000);
TRACE("___demo___");
m_mybtn.EnableWindow(true);
}

Your help and suggestion will be highly appreciated...
thanks
Raman
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
scorpion king28-Apr-08 2:55
scorpion king28-Apr-08 2:55 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
Cedric Moonen28-Apr-08 3:05
Cedric Moonen28-Apr-08 3:05 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
scorpion king28-Apr-08 3:09
scorpion king28-Apr-08 3:09 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
Maximilien28-Apr-08 3:05
Maximilien28-Apr-08 3:05 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
CPallini28-Apr-08 3:07
mveCPallini28-Apr-08 3:07 
GeneralRe: Strange behavior / Click events on disabled button get queued and process later.. Pin
scorpion king28-Apr-08 3:14
scorpion king28-Apr-08 3:14 
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 
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 

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.