15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Edit box size problems (2.0/2.2)

Neeraj -- Neeraj.Mital@FMR.Com
Friday, September 06, 1996


Environment: MSVC 2.0, MSVC 2.2  Windows NT 3.51

We have an MFC app containing several form views and modal dialogs, built 
using VC2.0 and running under NT 3 .51 using the default shell.

We upgraded to VC2.2 and the entire app compiled and linked without any 
problem.
However, when we run it on the same machiner - NT 3.51 using default shell, 
we notice 2 differences.
1. static text is not bold
2. edit boxes are little smaller.

Please help if you know why we see these differences and what can we  do to 
prevent it.

thanks

neeraj







Mike Blaszczak -- mikeblas@nwlink.com
Saturday, September 07, 1996

At 10:43 AM 9/6/96 -0400, you wrote:
>Environment: MSVC 2.0, MSVC 2.2  Windows NT 3.51

>We have an MFC app containing several form views and modal dialogs, built 
>using VC2.0 and running under NT 3 .51 using the default shell.

>We upgraded to VC2.2 and the entire app compiled and linked without any 
>problem.
>However, when we run it on the same machiner - NT 3.51 using default shell, 
>we notice 2 differences.
>1. static text is not bold
>2. edit boxes are little smaller.

>Please help if you know why we see these differences and what can we  do to 
>prevent it.

In Visual C++ 2.0, applications were always marked by the linker as
"old windows" applications.  That's because there were no new versions
at the time that Visual C++ 2.0 was developed as a product.  (That's how
old it is: it was written before Windows NT 3.51 shipped, and before
Windows 95 was shipped.  Wow!)

In Visual C++ 2.2, it was time to start building applications for Windows 95.
So, the linker automatically marks aspplications as new-windows compatible.

You have two choices:

a) Fix your application to use the new interface. Otherwise, it will look
outdated and not fit in with most of the applications you're running under
Windows NT 3.51 which _do_ use the narrow default fonts.

b) According to the documentation, you can use the /SUBSYSTEM option of
the linker.  /SUBSYSTEM:WINDOWS ends up meaning that the application
is marked for Windows 4.0.  You should try using /SUBSYSTEM:WINDOWS3.1
to get the old application look.

.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.




David Lowndes -- David.Lowndes@bj.co.uk
Monday, September 09, 1996

[Mini-digest: 2 responses]

>However, when we run it on the same machiner - NT 3.51 using default shell, 
>we notice 2 differences.
>1. static text is not bold
>2. edit boxes are little smaller.

I think this is becase your application is now built as a V4 executable. I seem to
remember that the default link switch (/subsystem) changed to 4 sometime
around VC 2.x. You can change it back by editing the linker option to:

	/subsystem:windows,3,10
-----From: "GoroKhM1" 

I have the similar problem in Win95, VC 4.x

Size changes after display settings Large/Small Font.

-mark

MarkG@usa.net





| Вернуться в корень Архива |