Archived

This topic is now archived and is closed to further replies.

Using Strings

This topic is 5649 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, I want to be able to switch between pictures. So, if a key is pressed the variable picture will change from "this.bmp" to "that.bmp."

Share this post


Link to post
Share on other sites
You need to load both bitmaps during startup and maintain a global variable indicating which bitmap should be presently used. Then handle appropriate keys in WM_KEYDOWN or WM_CHAR and set the global variable to either the first or the second bitmap mode.

Share this post


Link to post
Share on other sites