Thread: MFC Picture Changing

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    3

    Unhappy MFC Picture Changing

    Hello, just a few questions here.

    I am righting an RPG game using the MFC dialogs, and would like to have pictures that will change for different monsters/players.

    What is the easiest way to do this?

    Only thing i could come up with is by adding all the pictures to the dialog and hiding/showing them when needed, but there has to be a better way.

    Any help would be very much appreciated.

    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    3

    Question Original poster

    So,

    Does no one know the answer to my problem?

    I am really at a dead end here, and need some help.

    Thanks again

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    maybe you should try posting this in the Windows Programming or Game Programming forum?
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Load a seperate CBitmap for each of the picures........create a compatible dc for the window.......SelectObject the Bitmap you want

    On the OnPaint handler, BitBlt the created dc onto the CPaintDC...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. resizing OpenGL picture control in MFC window
    By stanlvw in forum Windows Programming
    Replies: 1
    Last Post: 03-19-2009, 03:21 PM
  2. [C] change picture width and height in Static control (no MFC)
    By pc2-brazil in forum Windows Programming
    Replies: 1
    Last Post: 05-05-2008, 01:17 AM
  3. Changing focus in an MFC Application
    By rangalo in forum Windows Programming
    Replies: 2
    Last Post: 06-20-2005, 06:21 AM
  4. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  5. Changing the image in a picture control
    By pinkcheese in forum Windows Programming
    Replies: 1
    Last Post: 04-15-2002, 03:14 PM