Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetWindowRect() for CEdit Pin
Anu_Bala20-May-10 20:57
Anu_Bala20-May-10 20:57 
GeneralRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 23:31
ThatsAlok20-May-10 23:31 
QuestionHelp to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit20-May-10 17:27
ndkit20-May-10 17:27 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Garth J Lancaster20-May-10 18:10
professionalGarth J Lancaster20-May-10 18:10 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
David Crow21-May-10 3:10
David Crow21-May-10 3:10 
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 
Hi,

I have noticed a problem in windows programming that I am unable to solve. I have created a new thread which should run as a separate process. In this thread I continually update a counter so that I Can visually see if and when my thread is interrupted.

If I put a CComboBox control on my dialog my thread is momentarily interrupted when the CComboBox is clicked and the list drops down.

I have tried creating my thread with realtime priority and the combobox still interrupts my thread when dropped down. Obviously the dropping down of the combobox does not interrupt other applications that are running in separate processes so I do not understand why it would interrupt my thread.

<br />
unsigned threadID;<br />
HANDLE hThread = (HANDLE)_beginthreadex( NULL, 0, &UpdateThread, (void*)this, 0, &threadID );<br />
SetPriorityClass(hThread, HIGH_PRIORITY_CLASS);<br />
SetThreadPriority(hThread, THREAD_PRIORITY_TIME_CRITICAL);<br />


How can I create a thread that will not be interrupted by the dropping down of the combobox?


Thanks,
Greg
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 
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 

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.