1) StretchBlt() can resize a bitmap while drawing it.
2) Hook WM_KEYDOWN message for processing arrow keys
If it wasn't possible to do these things with Win32 API, what API do you
think just about all existing Win32 applications use? Current .NET
applications plays on top of Win32 so they too are based on Win32 API
functionality.
/Per W
On Sat, 4 Jun 2005, HERBERT BELL wrote:
> I have two problems:
>
> 1.) Is there a way to stretch a bitmap in a window? I have one (540x405 pixels) that I want to stretch across a 1024x768 window without increasing the size of the app by using a huge bitmap.
>
> 2.) How do you get keyboard input? I want to be able to use the arrow keys to move another bitmap around the window.
>
> Can either of these be done using the Win32 API?
|