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

C / C++ / MFC

 
GeneralRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit23-May-10 23:48
ndkit23-May-10 23:48 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Rick York21-May-10 10:17
mveRick York21-May-10 10:17 
QuestionHow to stop CComboBox from interrupting thread? Pin
Greg Ellis20-May-10 17:06
Greg Ellis20-May-10 17:06 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Garth J Lancaster20-May-10 18:19
professionalGarth J Lancaster20-May-10 18:19 
GeneralRe: How to stop CComboBox from interrupting thread? Pin
Greg Ellis21-May-10 3:42
Greg Ellis21-May-10 3:42 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Stephen Hewitt20-May-10 20:18
Stephen Hewitt20-May-10 20:18 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Parthiban20-May-10 23:38
Parthiban20-May-10 23:38 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Roger Allen21-May-10 6:16
Roger Allen21-May-10 6:16 
You say you have a worker thread posting messages to the UI thread.

Your worker thread is not being interrupted any differently than it was when the combobox is not being used. Windows runs multiple threads by time slicing. Higher priority threads get more slices more often.

It appears to you that the thread is interupted by the click but it is not. As your using post message, the UI thread updates the control content. This is the same thread that handles the users click on the combobox. While the UI thread is handling the click combo drop event, any messages posted by the worker thread are being added to the message queue for the UI thread to process once it returns from its current work.

The issue you have is that the drop event of the combo is animated and due to this appears to pause the UI while this happens. Apart from re-writing how a combo box works (or some how disabling the animation) I do not beleive there is anything you can do about this.

As a test to show its not affectig the worker thread. Time how long it takes for your on screen counter to increment to a set count. Then check that its takes the equivalent time (within a dop of the combobox time threadshold) it should still reach the same count.
If you vote me down, my score will only get lower

QuestionExperiencing trouble with passing input string to array [modified] Pin
computerpublic20-May-10 15:33
computerpublic20-May-10 15:33 
AnswerRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 15:48
sitebuilderLuc Pattyn20-May-10 15:48 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 15:59
computerpublic20-May-10 15:59 
AnswerRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 16:00
sitebuilderLuc Pattyn20-May-10 16:00 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 16:06
computerpublic20-May-10 16:06 
GeneralRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 16:39
sitebuilderLuc Pattyn20-May-10 16:39 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 16:55
computerpublic20-May-10 16:55 
GeneralRe: Experiencing trouble with passing input string to array Pin
Aescleal20-May-10 22:21
Aescleal20-May-10 22:21 
AnswerRe: Experiencing trouble with passing input string to array Pin
Aescleal20-May-10 20:06
Aescleal20-May-10 20:06 
AnswerRe: it works perfectly now [modified] Pin
Software_Developer20-May-10 20:08
Software_Developer20-May-10 20:08 
GeneralRe: it works perfectly now Pin
Aescleal20-May-10 22:17
Aescleal20-May-10 22:17 
GeneralRe: You must be the Quality assurance team Pin
Software_Developer20-May-10 23:31
Software_Developer20-May-10 23:31 
QuestionHow to set breakpoint to step through CTabCtrl draw ... [modified] Pin
theFrenchHornet20-May-10 11:45
theFrenchHornet20-May-10 11:45 
Questionc++ combo list box Pin
mrby12320-May-10 5:55
mrby12320-May-10 5:55 
QuestionRe: c++ combo list box Pin
David Crow20-May-10 6:13
David Crow20-May-10 6:13 
AnswerRe: c++ combo list box Pin
mrby12320-May-10 6:25
mrby12320-May-10 6:25 
AnswerRe: c++ combo list box Pin
David Crow20-May-10 6:55
David Crow20-May-10 6:55 

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.