CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    11

    Animated GIF's as back ground under push buttons in MFC

    Hi All,

    I have MFC form view application on which I have some push buttons. I want to display animated GIF's such water flowing from left tp right as back ground Image and on top this image I want to place my buttons. What I mean is push buttons has to be placed on animtaed GIF instead of default back ground.

    I check Add GIF-animation to your MFC and ATL projects with the help of CPictureEx and CPictureExWnd project in the link

    http://www.codeproject.com/KB/graphics/pictureex.aspx

    but when I am running the application the buttons are covered by GIF's .. I am unable to see the buttons ..

    Please let me know how to do this ...

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Animated GIF's as back ground under push buttons in MFC

    Set the tab order of the GIF to be indexed lower than the buttons.

    The tab order is used to determine the Z-order of the controls.

  3. #3
    Join Date
    Dec 2008
    Posts
    114

    Re: Animated GIF's as back ground under push buttons in MFC

    Use IE COM to play animated GIF (nearly no code needed.)

  4. #4
    Join Date
    May 2009
    Posts
    11

    Re: Animated GIF's as back ground under push buttons in MFC

    Hi experts ,

    Thank yopu for your response. My application is a MFC form view window application with some controls on it .. those controls are like push buttons, check boxes and radio buttons .. So carl666 can I use the suggestion given by you for this application .. I am not sure but please let me know ..

    and about Arjay suggestion I will try to let you know the result ..

    Once again thank you all for your response

  5. #5
    Join Date
    May 2009
    Posts
    11

    Re: Animated GIF's as back ground under push buttons in MFC

    Hi Arjay...

    Set the tab order of the GIF to be indexed lower than the buttons ...

    by following your suggestion I changed GIF indexed as lower than the buttons but still my buttons are covered by GIF.. Is their anything any needs do other than lowering the index number of GIF ..

    Please let me know so that I can try that option .. Thank you very much in advance

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured