CBitmapButton Focus problem.

Discussion in 'MFC' started by shobhit_ra, Apr 11, 2009.

  1. shobhit_ra

    shobhit_ra New Member

    Apr 2, 2009
    Likes Received:
    Trophy Points:
    Hello All.

    I am using a CBitmapButton on MFC Dialog based application.
    I have set OWNERDRAW property to true and Bitmap- false from Property window.
    I am setting the bitmapslike this-

    my_Bitmap.LoadBitmap(IDB_BMP1, IDB_BMP2, IDB_BMP3, IDB_BMP4);

    But the behavior is very unlikely.
    I guess first bitmap is for show, second when button is pushed, third when mouse goues over it and fourth when button is disabled.

    Am I write?
    Anyways Third bitmap is never working, When I move mouse cursor on the bitmapbutton it should load the focused bitmap, It is not doing anything.

    Any suggestions? SHould I use some extra code for this?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice