CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 42

Threaded View

  1. #1
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Unhappy Set Focus When Mouse Over Button (MFC)

    Hello.

    made a bitmap button (3 states up down and focus)
    default is up.
    using tab I can focus on the button.
    disabled TAB,
    I want to focus on mouse over or on mouse hover.

    why does the following not work?

    Code:
    void C_MAINMENU_DIALOG::OnMouseHover(UINT nFlags, CPoint point)
    {
    	btnBmpCOD1.SetBitmap(::LoadBitmap(NULL, MAKEINTRESOURCE(IDB_COD1_FOCUS)));
    
    		// TODO: Add your message handler code here and/or call default
    
    	// CDialog::OnMouseHover(nFlags, point);
    }
    regards

    gerwin
    Last edited by TBBW; February 14th, 2010 at 05:08 PM.

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