Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

about UI thread..

0 views
Skip to first unread message

sammy

unread,
Sep 16, 2001, 10:14:31 PM9/16/01
to
Hi there,

I'd like to create window in a UI thread?
as follows:
1. CMyThread is inherit from CWinThread
2. CMyThread::CMyThread()
{
DWORD dwExStyle = WS_EX_APPWINDOW|WS_EX_WINDOWEDGE;
DWORD dwStyle = WS_OVERLAPPEDWINDOW;

// CreateWindows for connect
m_hWnd = CreateWindowEx(dwExStyle, "ROOM", "TITLE", dwStyle, 0, 0, 10,
10, NULL, NULL, (HINSTANCE) m_hThread, NULL);
...
}
however, m_hWnd always return 0, why?

appreciate any comment and suggestions.
thank you very much!

0 new messages