|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
InitInstance must be overridden to initialize each new instance of a user-interface thread.
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.