
Different Heights for a Window on different machines
As has already been pointed out, you will get different sizes.
MapDialogRect is only a partial help, because it depends upon some
accidental features. I've found over the years that using
GetDialogBaseUnits and MapDialogRect are fairly useless, and I try to
write dialogs whose behavior is totally independent of the dialog
proportions. What are you trying to do with this information? There
may be a better way.
joe
Quote:
>Hi,
> I am working on a GUI based product using VC++ 6.0 WINDOWS 95/98 and
>I have this strange
>problem.I have created a dialog in the resource.But
>GetWindowPlacement(..) seems to return 2
>different heights on 2 different machines.
>This is a piece of code
> .....
>.....
>...
> RECT rect;
> CDialog dialog;
> dialog.Create(IDD_MY_DIALOG,this);
> dialog.GetWindowRect(&rect);
> height = rect.bottom-rect.top;
>.......
>...
>.....
>On most of the machines it returns the same height but the machine
>having WINDOWS 98 second edition is an exception.
> I am largely dependent on this height to remain the same on all sorts
>of machine. height
>seems to differ on some of the machines . How can I handle this
>situation. Any help will be appreciated.
>TIA
>Rohith.
Joseph M. Newcomer [MVP]
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm