Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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.
C#
::SetWindowPos( WndHnd->GetSafeHWnd(), HWND_TOP , aStaticPosX,				FactorPosY,aWidth,TextSize.cy, SWP_NOZORDER );


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.
Posted
Updated 16-Dec-10 23:48pm
v4
Comments
Abdul Quader Mamun 17-Dec-10 5:48am    
Decorate question & Spelling check.

1 solution

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.
 
Share this answer
 
Comments
SrikanthSriSri 22-Dec-10 5:42am    
Hi John,

Thanks for the reply.
I think yes. I will try to change the font and import back.
But even the Combox position is also getting shifted.
Any idea why this is happening.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900