Sprite size changes when the window size changes!!

Hello,
There is a problem which I suffers from a lot. When I draw a sprite with scaling 1:1 in a windowed mode it draws perfect with the same size as it's power of 2. When I resize the window I found all the sprites sizes changes and I can't get it's new size for purposes such picking it and know if the mouse cursor position intersect with this region.
Thanks,
Mustafa ELBanna

[402 byte] By [MustafaELBanna] at [2008-2-12]
# 1
If you are handling the WM_SIZE message in the WndProc correctly, then you
have the information to update any dependent code as to the ratio of change
in the viewport as well as sprite size changes. You will need to use the ratio of
change to augment the detection method you are using, as from the information
you have provided in the post it seems that you are using some hard coded
method, so you will need to add the increase in size to that data.
laforced at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...