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. Remove button border

Remove button border

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorial
7 Posts 4 Posters 1 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

    when bmp image is used in the dialog background then the button creates a white border. how to remove this border. sample of how it looks is below http://i55.tinypic.com/25qdj79.png[^]

    Some Day I Will Prove MySelf :: GOLD

    C T 2 Replies Last reply
    0
    • G goldenrose9

      when bmp image is used in the dialog background then the button creates a white border. how to remove this border. sample of how it looks is below http://i55.tinypic.com/25qdj79.png[^]

      Some Day I Will Prove MySelf :: GOLD

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      Not sure but, try setting Transparent property of button to true. (WS_EX_TRANSPARENT style).

      G 1 Reply Last reply
      0
      • C Cool_Dev

        Not sure but, try setting Transparent property of button to true. (WS_EX_TRANSPARENT style).

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

        i have checked it's not working.

        Some Day I Will Prove MySelf :: GOLD

        1 Reply Last reply
        0
        • G goldenrose9

          when bmp image is used in the dialog background then the button creates a white border. how to remove this border. sample of how it looks is below http://i55.tinypic.com/25qdj79.png[^]

          Some Day I Will Prove MySelf :: GOLD

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          goldenrose9 wrote:

          http://i55.tinypic.com/25qdj79.png[^]

          not able to open the link due to corporate issue. anyways.. if by any mean i can able to see the bitmap, i can comment on same!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

          G 1 Reply Last reply
          0
          • T ThatsAlok

            goldenrose9 wrote:

            http://i55.tinypic.com/25qdj79.png[^]

            not able to open the link due to corporate issue. anyways.. if by any mean i can able to see the bitmap, i can comment on same!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

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

            sir what do i do so u can see the bitmap? sir 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

            K 1 Reply Last reply
            0
            • G goldenrose9

              sir what do i do so u can see the bitmap? sir 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

              K Offline
              K Offline
              Klaus Werner Konrad
              wrote on last edited by
              #6

              May be this is the 'default button' signal - I'm not sure. Try to add another HIDDEN button to the form and make that button the default one. HTH

              G 1 Reply Last reply
              0
              • K Klaus Werner Konrad

                May be this is the 'default button' signal - I'm not sure. Try to add another HIDDEN button to the form and make that button the default one. HTH

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

                this is not the default signal, because i have four buttons on the dialog, and each button have the same problem. When the button are in classic style every thing is ok. But after enabling XP Visual Styles this problem occurs.

                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