CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Location
    kathmandu, nepal
    Posts
    1,570

    OK and CANCEL MFC CDialog's button

    In my MFC Dialog application, all buttons look fine except the Ok and Cancel button. They have a black border. Not sure from where does this black enclosing border comes from. It is visible when I execute the application as well as in the Dialog Resource Editor. I have provided a manifest file to include the XP Visual Style.

    How do I get rid of this black border?

    I am using XP 2005

    Here is the view:
    Attached Images Attached Images
    Last edited by miteshpandey; August 27th, 2007 at 09:47 AM.
    If there is no love sun won't shine

  2. #2
    Join Date
    Oct 2002
    Location
    Austria
    Posts
    1,284

    Re: OK and CANCEL MFC CDialog's button

    Looks like you have the "default" button style checked for both ok and cancel.
    Kurt

  3. #3
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    Re: OK and CANCEL MFC CDialog's button

    Another approach is you can paint the button by your own.

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