my cancel button is not working
-
Hai all Iam working on a telelcom project...while reading from or wroting to a node we use to show a progress control and a "Cancel" button on it.Focus will be set ot this button while the process goes on in order to give the user to cancel the process at any time.but my button is not working(not responding) for the mouse click and is working fine if we press the space bar.can anybody solve my problem?? ThomasKennedyBose
-
Hai all Iam working on a telelcom project...while reading from or wroting to a node we use to show a progress control and a "Cancel" button on it.Focus will be set ot this button while the process goes on in order to give the user to cancel the process at any time.but my button is not working(not responding) for the mouse click and is working fine if we press the space bar.can anybody solve my problem?? ThomasKennedyBose
-
Could you give some more information? Is this a dialog box you are talking about, in which case did you create it using MFC, Class Wizard etc. and using the default id IDCANCEL for it? Debbie
ya.....this is a dialog box , using the default id IDCANCEL for it....progressbar will be running in special thread.... ThomasKennedyBose
-
ya.....this is a dialog box , using the default id IDCANCEL for it....progressbar will be running in special thread.... ThomasKennedyBose
-
Sounds weird then. Are you sure the OnCancel is being called by the spacebar action? I'd override it to double check. Are there any other buttons on the dialog? Are they similarly affected? Debbie
ya....OnCancel is being called by the spacebar action......there are no other buttons on it.... ThomasKennedyBose
-
ya....OnCancel is being called by the spacebar action......there are no other buttons on it.... ThomasKennedyBose
-
Is the mouse working at all in the rest of the dialog box? Could you try putting in, say, a radio button and seeing whether that works? Debbie
no debbi..... no other control is responding. ThomasKennedyBose
-
no debbi..... no other control is responding. ThomasKennedyBose
-
Well, I'm stating the b. obvious here, so apologies, but at least you've got the cancel button out of the equation! You could try GetCapture to see which window has the mouse capture, but other than that I'm all out of ideas, I'm afraid. Debbie
Hi,, I tried with this code and it is working fine now AfxGetMainWnd()->GetTopLevelParent()->GetLastActivePopup()->EnableWindow(TRUE); ThomasKennedyBose