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. Problem with Static control

Problem with Static control

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionwpf
5 Posts 3 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.
  • N Offline
    N Offline
    nguyenvhn
    wrote on last edited by
    #1

    Hello everybody, I inserted a static control into dialog box in dialog editor. I set it's styles to: Border, Center vertical. But when I run program or tested dialog by Layout -> Test command, the static displayed with border and sunken styles (that mean, it include WS_BORDER and SS_SUNKEN styles thought I did not). I am using Visual C++ 6 SP5. Why that? How can I fix it? Thanks for reading.

    D V 2 Replies Last reply
    0
    • N nguyenvhn

      Hello everybody, I inserted a static control into dialog box in dialog editor. I set it's styles to: Border, Center vertical. But when I run program or tested dialog by Layout -> Test command, the static displayed with border and sunken styles (that mean, it include WS_BORDER and SS_SUNKEN styles thought I did not). I am using Visual C++ 6 SP5. Why that? How can I fix it? Thanks for reading.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What you are seeing is the 3D effect, not the SS_SUNKEN style.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      N 1 Reply Last reply
      0
      • D David Crow

        What you are seeing is the 3D effect, not the SS_SUNKEN style.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        N Offline
        N Offline
        nguyenvhn
        wrote on last edited by
        #3

        Yes, But how can I remove that effect? Thanks

        D 1 Reply Last reply
        0
        • N nguyenvhn

          Hello everybody, I inserted a static control into dialog box in dialog editor. I set it's styles to: Border, Center vertical. But when I run program or tested dialog by Layout -> Test command, the static displayed with border and sunken styles (that mean, it include WS_BORDER and SS_SUNKEN styles thought I did not). I am using Visual C++ 6 SP5. Why that? How can I fix it? Thanks for reading.

          V Offline
          V Offline
          vividtang
          wrote on last edited by
          #4

          no,the style is still center vetical and border,border and sunken are different ,you can try to compare their effect,you only feel it look like sunken .

          1 Reply Last reply
          0
          • N nguyenvhn

            Yes, But how can I remove that effect? Thanks

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Don't call Enable3dControls() (or Enable3dControlsStatic()).


            "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

            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