Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to chanhe clipping position of WindowLess ActiveX ? Pin
vgrigor27-Aug-03 22:47
vgrigor27-Aug-03 22:47 
GeneralEasy question Pin
Scozturk27-Aug-03 22:35
professionalScozturk27-Aug-03 22:35 
GeneralRe: Easy question Pin
Steve S27-Aug-03 22:38
Steve S27-Aug-03 22:38 
GeneralRe: Easy question Pin
Scozturk27-Aug-03 22:44
professionalScozturk27-Aug-03 22:44 
GeneralRe: Easy question Pin
Bob Stanneveld29-Aug-03 4:43
Bob Stanneveld29-Aug-03 4:43 
GeneralFiles Pin
Scozturk27-Aug-03 22:29
professionalScozturk27-Aug-03 22:29 
GeneralRe: Files Pin
David Crow28-Aug-03 2:49
David Crow28-Aug-03 2:49 
GeneralInterrupt a long time operation Pin
CodeBrain27-Aug-03 22:17
CodeBrain27-Aug-03 22:17 
I have a long time operation. In order to be able to interrupt it, the operation runs in different shorter steps. After each step I get a callback message where I can return if I want to continue the operation or not. Since the user should be able to abort the operation I developed a modless dialog box with a cancel button. The dialog class has 2 methods: one is the event handler for the cancel button (I set an internal flag if the user clicks on the button) and the other is a query method which I call in my callback handler which I mentioned above.
The query method which I call regularly contains the following code
<br />
MSG msg;<br />
while (::PeekMessage(&msg, NULL, <br />
	NULL, NULL, PM_NOREMOVE))<br />
{<br />
	AfxGetThread()->PumpMessage();<br />
}<br />
// Evaluate the abort flag (set in the OnCancel method) here and return it<br />
return m_bAbortedByUser;<br />


My problem is, that I can not click on the cancel button in my dialog. But the weird thing is that I can cancel the operation by closing the dialog using the X button of the dialog.
So why does the dialog gets the closing message via the X button but not the click message on the button? Anyone an idea how I can fix it?

Thanks in advance.
GeneralRe: Interrupt a long time operation Pin
d_lite27-Aug-03 22:33
d_lite27-Aug-03 22:33 
GeneralRe: Interrupt a long time operation Pin
CodeBrain28-Aug-03 0:44
CodeBrain28-Aug-03 0:44 
GeneralRe: Interrupt a long time operation Pin
David Crow28-Aug-03 2:54
David Crow28-Aug-03 2:54 
GeneralRe: Interrupt a long time operation Pin
CodeBrain28-Aug-03 4:03
CodeBrain28-Aug-03 4:03 
GeneralCRichEditCtrl Pin
hph27-Aug-03 22:02
hph27-Aug-03 22:02 
GeneralRe: CRichEditCtrl Pin
CodeBrain27-Aug-03 22:23
CodeBrain27-Aug-03 22:23 
Generali need something look like TimeLine Window in Flash Pin
HeartFriend27-Aug-03 20:40
HeartFriend27-Aug-03 20:40 
GeneralUnicode sscanf from a CString Pin
Ravi Bhavnani27-Aug-03 19:38
professionalRavi Bhavnani27-Aug-03 19:38 
GeneralNever mind Pin
Ravi Bhavnani27-Aug-03 19:48
professionalRavi Bhavnani27-Aug-03 19:48 
GeneralFunny problem!!! Sucide Exe after reboot Pin
rohit.dhamija27-Aug-03 19:35
rohit.dhamija27-Aug-03 19:35 
GeneralRe: Funny problem!!! Sucide Exe after reboot Pin
Magnus Westin27-Aug-03 21:51
Magnus Westin27-Aug-03 21:51 
GeneralRe: Funny problem!!! Sucide Exe after reboot Pin
Scozturk27-Aug-03 22:32
professionalScozturk27-Aug-03 22:32 
GeneralRe: Funny problem!!! Sucide Exe after reboot Pin
rohit.dhamija27-Aug-03 22:39
rohit.dhamija27-Aug-03 22:39 
GeneralRe: Funny problem!!! Sucide Exe after reboot Pin
Scozturk27-Aug-03 22:46
professionalScozturk27-Aug-03 22:46 
GeneralRe: Funny problem!!! Sucide Exe after reboot Pin
Anders Molin28-Aug-03 0:02
professionalAnders Molin28-Aug-03 0:02 
Generalwinsock error message Pin
d_lite27-Aug-03 18:26
d_lite27-Aug-03 18:26 
GeneralRe: winsock error message Pin
Florin Ochiana27-Aug-03 20:30
Florin Ochiana27-Aug-03 20:30 

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.