how do you load and display bit map's or other graphic files to the screen. how do you check if a key is beiong pressed.
This is a discussion on how do you display bmp's within the C++ Programming forums, part of the General Programming Boards category; how do you load and display bit map's or other graphic files to the screen. how do you check if ...
how do you load and display bit map's or other graphic files to the screen. how do you check if a key is beiong pressed.
Well the api's for displaying a bitmap are LoadImage or LoadIcon to get a handle to a loaded an icon and DrawIcon using the handle and x,y coordinates and a handle to a device context.
The WM_KEYDOWN message is posted to the window with keyboard focus when a nonsystem (no alt key) key is pressed.
For me to make any heads or tells of windows programming I had to read Charles Petzold "Programming Windows 95", you can get used copies at Amazon.com. Having said that, I would recommend Petzold's "Programming Windows fifth edition", its more complete .