Click here to Skip to main content
15,922,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win32 TimerQueue problems on DUAL PROCESSORS Pin
Gavin Stark12-Mar-04 13:06
Gavin Stark12-Mar-04 13:06 
GeneralSTL Function Objects Pin
JWood12-Mar-04 8:28
JWood12-Mar-04 8:28 
GeneralRe: STL Function Objects Pin
Tim Smith12-Mar-04 8:43
Tim Smith12-Mar-04 8:43 
GeneralRe: STL Function Objects Pin
Mike Dimmick12-Mar-04 8:47
Mike Dimmick12-Mar-04 8:47 
GeneralRe: STL Function Objects Pin
JWood12-Mar-04 9:40
JWood12-Mar-04 9:40 
GeneralRe: STL Function Objects Pin
Mike Dimmick12-Mar-04 10:00
Mike Dimmick12-Mar-04 10:00 
GeneralGetting thread status programatically Pin
Deian12-Mar-04 8:03
Deian12-Mar-04 8:03 
GeneralRe: Getting thread status programatically Pin
MeterMan12-Mar-04 20:13
MeterMan12-Mar-04 20:13 
Try setting a bool value bool isrunning;
And have it set itself to true while the thread is running then after the thread stops right before the AfxEndThread(0); set it back to false.
or you could have something like this.

1) make an edit box
2) give the edit box a member variable of type CEdit call it m_example
3) under OnInit() or whatever function is called to initialize your dialog or window that you are using put m_example.SetWindowText("NOT RUNNING");
4) then inside the run() of your thread make the first line before it does its while statement. m_example.SetWindowText("IS RUNNING");
5) after the while statement and before AfxEndThread(0); put m_example.SetWindowText("NOT RUNNING");



I hope this makes sense. There might be a better way since i'm just starting Visual myself, but anyway this should work.

Win32newb
"Making windows programs worse than they already are"
GeneralRe: Getting thread status programatically Pin
Prakash Nadar12-Mar-04 22:45
Prakash Nadar12-Mar-04 22:45 
GeneralRe: Getting thread status programatically Pin
Deian13-Mar-04 1:28
Deian13-Mar-04 1:28 
GeneralRe: Getting thread status programatically Pin
Blake Miller17-Mar-04 8:09
Blake Miller17-Mar-04 8:09 
GeneralNeed compact html rendering component for an mfc app Pin
Jim Howard12-Mar-04 6:40
Jim Howard12-Mar-04 6:40 
GeneralRe: Need compact html rendering component for an mfc app Pin
David Crow12-Mar-04 6:59
David Crow12-Mar-04 6:59 
GeneralRe: Need compact html rendering component for an mfc app Pin
Jim Howard12-Mar-04 7:06
Jim Howard12-Mar-04 7:06 
GeneralRe: Need compact html rendering component for an mfc app Pin
Joel Lucsy12-Mar-04 7:45
Joel Lucsy12-Mar-04 7:45 
GeneralRe: Need compact html rendering component for an mfc app Pin
Chris Richardson12-Mar-04 14:15
Chris Richardson12-Mar-04 14:15 
GeneralAccessing Values from a DLL Pin
mike-o12-Mar-04 5:56
mike-o12-Mar-04 5:56 
GeneralRe: Accessing Values from a DLL Pin
JWood12-Mar-04 8:09
JWood12-Mar-04 8:09 
GeneralRe: Accessing Values from a DLL Pin
mike-o12-Mar-04 9:23
mike-o12-Mar-04 9:23 
QuestionHow to disable the dropdown arrow of a combo box? Pin
bin892212-Mar-04 5:30
bin892212-Mar-04 5:30 
AnswerRe: How to disable the dropdown arrow of a combo box? Pin
Steve S12-Mar-04 5:46
Steve S12-Mar-04 5:46 
AnswerRe: How to disable the dropdown arrow of a combo box? Pin
MeterMan12-Mar-04 20:26
MeterMan12-Mar-04 20:26 
GeneralRe: How to disable the dropdown arrow of a combo box? Pin
bin892215-Mar-04 5:55
bin892215-Mar-04 5:55 
GeneralRe: How to disable the dropdown arrow of a combo box? Pin
Babu_Abdulsalam13-Dec-09 21:52
Babu_Abdulsalam13-Dec-09 21:52 
GeneralRe: How to disable the dropdown arrow of a combo box? Pin
rgaab17-Mar-14 14:15
rgaab17-Mar-14 14:15 

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.