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

Thread: Mouse Hovering changes the state of size of CMFC button

  1. #1
    Join Date
    Dec 2019
    Posts
    13

    Mouse Hovering changes the state of size of CMFC button

    Requirement - Size of CMFC button should not change on mouse hovering

    File.rc
    PUSHBUTTON ">",IDC_A,2,2,2,2

    Main.cpp
    DDX_Control(pDx,IDC_A,m_button);

    Main.h
    CMFC m_button;

    Can anyone help with this such that on mouse hovering the button size remain unmodified ?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,797

    Re: Mouse Hovering changes the state of size of CMFC button

    Quote Originally Posted by prernagupta171995 View Post
    Requirement - Size of CMFC button should not change on mouse hovering

    File.rc
    PUSHBUTTON ">",IDC_A,2,2,2,2

    Main.cpp
    DDX_Control(pDx,IDC_A,m_button);

    Main.h
    CMFC m_button;

    Can anyone help with this such that on mouse hovering the button size remain unmodified ?
    1. What is CMFC class?
    2. The button looks very small.
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2019
    Posts
    13

    Re: Mouse Hovering changes the state of size of CMFC button

    Hi Victor,

    1. Sorry typo error
    Main.h

    CMFCButton n_button;

    2. Yeah width nd height were eg.
    Actual the width & height is 22,11

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,797

    Re: Mouse Hovering changes the state of size of CMFC button

    Quote Originally Posted by prernagupta171995 View Post
    Hi Victor,

    1. Sorry typo error
    Main.h

    CMFCButton n_button;

    2. Yeah width nd height were eg.
    Actual the width & height is 22,11
    OK!
    But how is the size of your CMFC button changed on mouse hovering? In my test dialog application the size is not changed only the button look changes.
    Victor Nijegorodov

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)