Title: CreateWindowEx problem

Then another engineer made some changes to it, and the new version exhibits a strange problem.  When the list view is created using ::CreateWindowEx, the function call returns a NULL hWnd.  However, a GetLastError call returns an error of 0 (no error)!  The NULL hWnd causes an assertion at application startup.

Two things come to my mind:

1. Make sure the window class you're passing to CreateWindowEx( ) is properly registered.

2. Make sure you're not blowing anything in the WM_CREATE message handler.

Good luck,
Ehsan

_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to