About handle of Instance and threadID Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
liuqi5521
Earned some good credits
Earned some good credits
Posts: 103
Joined: Thu Apr 03, 2008 5:35 am
Location: China
Contact:

About handle of Instance and threadID

Post by liuqi5521 » Thu Jul 31, 2008 2:38 am

how can I retrieve the handle of my application's instance in my wxWidgets program? and threadID.

just like this in MFC:

AfxGetApp()->m_hInstance
AfxGetApp()->m_nThreadID

User avatar
doublemax
Moderator
Moderator
Posts: 14277
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: About handle of Instance and threadID

Post by doublemax » Thu Jul 31, 2008 7:43 am

MSW specific:
::wxGetInstance()
you need to include "wx\msw\private.h"

wxThread::GetCurrentId()
http://docs.wxwidgets.org/stable/wx_wxt ... tcurrentid
Use the source, Luke!

Post Reply