与Win XP中的Win7相比,ComboBox和静态文本在不同的坐标处绘制 [英] ComboBox and static text are drawn at different coordinates in Win7 than in Win XP

查看:59
本文介绍了与Win XP中的Win7相比,ComboBox和静态文本在不同的坐标处绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在将我的应用程序从Windows XP移植到Windows7.

在Windows XP和Windows 7中,Combox和静态文本的位置不同.

我也希望在Windows 7中保留相同的位置.但是在Windows 7中,静态文本和ComboBox放错了位置,并误导了用户.

我正在使用setwindowpos()API进行定位.

Hi,

I am porting my Application from Windows XP to Windows 7.

The Combox and Static text positioning is different in Windows XP and Windows 7.

I want same positioning to be retained in Windows 7 also. But in Windows 7 the static text and ComboBox is misplaced and is misleading the users.

I am using setwindowpos() API for positioning.

::SetWindowPos( WndHnd->GetSafeHWnd(), HWND_TOP , aStaticPosX,				FactorPosY,aWidth,TextSize.cy, SWP_NOZORDER );



您能否告诉我如何在Windows 7中还原原始位置(与Windows XP中一样).



Could you please tell how to restore the original positioning(as it was in windows xp) in windows 7.

Thanks you very much in advance.

推荐答案

是不是对话框中使用的字体在两台计算机上都不存在? />
如果Windows找不到所需的字体,它将恢复为默认的默认字体,即MS San Serif.
Could it be that the font you''re using in the dialog box doesn''t exist on both machines?

If Windows can''t find the requested font, it will fall back to the default which I think is MS San Serif.


这篇关于与Win XP中的Win7相比,ComboBox和静态文本在不同的坐标处绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆