current thread? 
Author Message
 current thread?

I have an MDI application built with c55EE legacy. When the user clicks a
button on the application frame's toolbar (MDI parent) I need to know the
thread number of the topmost window in the MDI child area. Any suggestions?


Sun, 06 Nov 2005 05:42:59 GMT  
 current thread?
Darryl,

Quote:
> button on the application frame's toolbar (MDI parent) I need to know the
> thread number of the topmost window in the MDI child area. Any suggestions?

Create a global Long variable: GLO:ActiveThread (non-threaded!)
In every windows EVENT:GainFocus embed: (except the MDI parent)
   GLO:ActiveThread = THREAD()

--

Best regards,
Maarten
CDD3.1, C5EEb - ABC & C5.5.08EE
Certainly Clarion Developer

"I know what I know but I do not know what you don't know"



Mon, 07 Nov 2005 03:12:02 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Current Thread mysteriously changes after REGET on ODBC?

2. Data Dict. - Open In Current Thread

3. A current thread reentrant Mutex

4. Embedding Python -- PyThreadState_Get: no current thread

5. no current thread warning

6. Fatal Python error: PyThreadState_Get: no current thread

7. PyThreadState_Get: no current thread -- building debug libraries

8. Fatal Python error: PyThreadState_Get: no current thread

9. Changing the current thread priority under Win32

10. Fatal Python error: PyThreadState_Get: no current thread

11. win32 app exits with PyThreadState_Get:no current thread

12. Fatal Python Error: PyThreadState_Get: no current thread

 

 
Powered by phpBB® Forum Software