From: Philip B. <ph...@bl...> - 2008-10-12 14:33:34
|
It would be a logical thing to do, if I had in fact received a valid window handle but the window just wasn't showing. Calling ShowWindow with a NULL handle, which is the case right now, wouldn't do much good. Regards Philip Bennefall ----- Original Message ----- From: toa...@ya... To: Philip Bennefall Sent: Sunday, October 12, 2008 4:27 PM Subject: Re: [Dev-C++] CreateDialog issues try using ShowWindow(hwnd, SW_SHOW) after creating the dialog box. --- Em dom, 12/10/08, Philip Bennefall <ph...@bl...> escreveu: De: Philip Bennefall <ph...@bl...> Assunto: [Dev-C++] CreateDialog issues Para: dev...@li... Data: Domingo, 12 de Outubro de 2008, 11:53 Dear list, I'm having a very strange problem with a seemingly simple piece of code. I'm simply loading a dialog box from a resource, and building it with CreateDialog. It's finding the resource fine, but for some reason CreateDialog returns NULL. According to Msdn, you can get extended information for this particular function with GetLastError so that's exactly what I did. However, GetLastError returns 0 (success)... And still the window is not being created! If anyone has the time to take a look at the scode snippet, I would appreciate it very much! Thanks in advance. Regards Philip Bennefall ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------------------------------ Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. |