Jose,
Do you see any significant visual difference between the attached on your system?
James
Yes, mainly in the width of the window and controls.
Jose,
Thanks. They both are the same on my system.
01 - is a resource dialog using Tahoma 10 for the font
02 - is a CWindow using pWindow.SetFont("Tahoma", 10)
I ran the app that displays #01 and then used PBWinSpy to get the sdk coordinates which I used in 02 for the window and controls.
They both also have the expanded manifest.
I used CLayout for sizing on both.
Is there something I can do to have them both the same size?
James
Jose,
How about these?
I removed the dpi awareness from the manifest for Layout03.
James
CWindow does scaling according the DPI ratio and the Dialog engine according the font size.
>Is there something I can do to have them both the same size?
You will have to change the CWindow code to do scaling according the font size.
> How about these?
And which is the one that uses a resource and the one that uses CWindow?
Jose,
01 - is a resource dialog using Tahoma 10 for the font with dpi aware manifest
02 - is a CWindow using pWindow.SetFont("Tahoma", 10) with dpi aware manifest
03 - is a resource dialog using Tahoma 10 for the font with NO dpi aware manifest
James
Why you insist in using the dialog engine is a mystery to me. Like DDT, it seemed like a good idea in the past century, when we were using 600x800 monitors, but it is obsolete today.
Jose,
I was using Dialogs way before DDT. It was my code back then that inspired Bob to develop DDT.
Also I like the WYSIWYG Dialog editor I use.
I also very much like your CWindow but am still having a hard time to see the advantages for simple data input screens. Convince me :)
I changed the Windows display settings on a Windows 10 laptop with a 1600x900 resolution.
I set it to 150% (the max it would allow).
All three windows in the zip displayed the same size??
James
Jose,
My bad on all the same size.
It matched your views.
James
> I was using Dialogs way before DDT. It was my code back then that inspired Bob to develop DDT.
So you're the culprit... I won't make the same mistake than Bob.