Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   CBitmapButton Focus problem. (http://www.go4expert.com/forums/cbitmapbutton-focus-problem-t16879/)

shobhit_ra 11Apr2009 10:57

CBitmapButton Focus problem.
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?

All times are GMT +5.5. The time now is 14:24.