Title: CreateWindowEx problem
Thanks,
this was found to be (as you suggested) a failure in the WM_CREATE handler.  There was a problem with a bitmap that was causing the create to return (-1) instead of 0.
-Jean


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ehsan Akhgari
Sent: Friday, January 06, 2006 7:57 AM
To: [email protected]
Subject: Re: [msvc] 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