window menu drawing different in D and in VC++/MinGW

Derek Parnell derek at nomail.afraid.org
Mon Aug 21 18:55:57 PDT 2006


On Tue, 22 Aug 2006 04:38:57 +0300, Serg Kovrov wrote:

> Greetings everybody,
> 
> I have ported extremely simple win32 gui example (one of catch22.net 
> tutorials), and run into strange problem - when built with D, program 
> drawing routine behaves slightly different from original. regardless 
> that code almost identical. I suppose it is related to non-client 
> drawing of frame window.
> 
> Please see screenshots:
> 
> This is how it should look (and actually do look so when built with VC++ 
> or MinGW):
> http://img245.imageshack.us/my.php?image=neatpad01agi8.png
> 
> and this one built with D - notice small 1px trashed area under menu:
> http://img223.imageshack.us/my.php?image=neatpad01md7.png

I believe this is a Windows bug. It happens when your .exe is generated
without specifying a modern Windows version. Ensure your .def file for the
project has the two lines ...

EXETYPE NT
SUBSYSTEM WINDOWS,5.0


-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
22/08/2006 11:53:26 AM



More information about the Digitalmars-d-dwt mailing list