|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
digitalmars.D.dwt - window menu drawing different in D and in VC++/MinGW
Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Seems window menu bar do not fill entire area, it should do. But I can't understand why - This is not ownerdrawn menu, I'm do not have any control on how it draws. I could accept that this yet another problem I should solve, but why it manifest itself only when built with D? Again - I ported code from C++ to D with minimal changes required, all drawing routines are identical with original. source code attached. (I have to use 7zip to fit) Thanks -- serg. Aug 21 2006
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 Seems window menu bar do not fill entire area, it should do. But I can't understand why - This is not ownerdrawn menu, I'm do not have any control on how it draws. I could accept that this yet another problem I should solve, but why it manifest itself only when built with D? Again - I ported code from C++ to D with minimal changes required, all drawing routines are identical with original. source code attached. (I have to use 7zip to fit) Thanks Aug 21 2006
kris wrote: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 Seems window menu bar do not fill entire area, it should do. But I can't understand why - This is not ownerdrawn menu, I'm do not have any control on how it draws. I could accept that this yet another problem I should solve, but why it manifest itself only when built with D? Again - I ported code from C++ to D with minimal changes required, all drawing routines are identical with original. source code attached. (I have to use 7zip to fit) Thanks Aug 21 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 Aug 21 2006
Derek Parnell wrote: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 Aug 22 2006
|