Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to remove the extra border of a button after enabling xp visual style

how to remove the extra border of a button after enabling xp visual style

Scheduled Pinned Locked Moved C / C++ / MFC
wpfhelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goldenrose9
    wrote on last edited by
    #1

    a small brief of my program is as follows. my program is in win32, i had used BMP image on the Dialog, the BMP image cover the entire dialog. BMP image is in blue color. And added a button on the dialog. without using manifest the button is ok, but after enabling xp visual style a strange border is created around the button. As the Dialog has BMP image loaded, it creates a strange look, if some how the extra border of the button can be removed, then it will be ok. I am unable to remove the extra border. i don't want to remove the button border, i want to remove only the extra border that is created around the button after enabling xp visual styles. please help.

    Some Day I Will Prove MySelf :: GOLD

    H 1 Reply Last reply
    0
    • G goldenrose9

      a small brief of my program is as follows. my program is in win32, i had used BMP image on the Dialog, the BMP image cover the entire dialog. BMP image is in blue color. And added a button on the dialog. without using manifest the button is ok, but after enabling xp visual style a strange border is created around the button. As the Dialog has BMP image loaded, it creates a strange look, if some how the extra border of the button can be removed, then it will be ok. I am unable to remove the extra border. i don't want to remove the button border, i want to remove only the extra border that is created around the button after enabling xp visual styles. please help.

      Some Day I Will Prove MySelf :: GOLD

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      The most direct way to accomplish what you want is to write an ownerdraw button control. There are articles about doing this here on CodeProject. All you have to do is select one that doesn't apply XP theming. BTW, have you tried your app on Vista or Windows 7? They might display the button in a different way.

      Best wishes, Hans


      [Hans Dietrich Software]

      G 1 Reply Last reply
      0
      • H Hans Dietrich

        The most direct way to accomplish what you want is to write an ownerdraw button control. There are articles about doing this here on CodeProject. All you have to do is select one that doesn't apply XP theming. BTW, have you tried your app on Vista or Windows 7? They might display the button in a different way.

        Best wishes, Hans


        [Hans Dietrich Software]

        G Offline
        G Offline
        goldenrose9
        wrote on last edited by
        #3

        thanx, how to make a portion of BMP image transparent in WIN32 way.

        Some Day I Will Prove MySelf :: GOLD

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups