Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CWinThread::InitInstance

InitInstance must be overridden to initialize each new instance of a user-interface thread.

virtual BOOL InitInstance( );

Return Value

Nonzero if initialization is successful; otherwise 0.

Remarks

Typically, you override InitInstance to perform tasks that must be completed when a thread is first created.

This member function is used only in user-interface threads. Perform initialization of worker threads in the controlling function passed to AfxBeginThread.

See Also

CWinThread Overview | Class Members | Hierarchy Chart | CWinApp::InitInstance

Show:
© 2015 Microsoft