cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Calling thread activating CWnd
Calling thread activating CWnd
Nov 4, 2013 at 9:04am UTC
MrChefman
(3)
Hi,
I'm looking for a method, to determine the calling thread-ID or window handle when a CWnd::OnActivate is triggered in MFC.
In my application, I use the MFC function
OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
which is activated by an ON_WM_ACTIVATE message.
Now I'm looking for any option, to determine, which thread or window made this call.
Any ideas?
Nov 4, 2013 at 3:43pm UTC
Computergeek01
(5613)
Use GetCurrentThreadId() inside of the callback function and write the value it returns to a file maybe?:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683183(v=vs.85).aspx
Topic archived. No new replies allowed.