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

Derek Parnell derek at
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 
> 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):
> and this one built with D - notice small 1px trashed area under menu:

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 ...


(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