MFC Picture Changing

This is a discussion on MFC Picture Changing within the C++ Programming forums, part of the General Programming Boards category; Hello, just a few questions here. I am righting an RPG game using the MFC dialogs, and would like to ...

  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,789
    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, 04: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, 02:17 AM
  3. Changing focus in an MFC Application
    By rangalo in forum Windows Programming
    Replies: 2
    Last Post: 06-20-2005, 07:21 AM
  4. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 09:52 PM
  5. Changing the image in a picture control
    By pinkcheese in forum Windows Programming
    Replies: 1
    Last Post: 04-15-2002, 04:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21