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. Overlapping CStatics

Overlapping CStatics

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • E Offline
    E Offline
    eugi
    wrote on last edited by
    #1

    hi everybody! i would like to make two CStatic controls overlap, that is, i would want one CStatic with either the SS_BITMAP or the SS_ICON properties to be placedo over a SS_BITMAP CStatic. i have tried many combinations, but i just can't get it right! can anybody help? or are there other way's to do it? thanks, eugi www.eugigames.tk

    S 1 Reply Last reply
    0
    • E eugi

      hi everybody! i would like to make two CStatic controls overlap, that is, i would want one CStatic with either the SS_BITMAP or the SS_ICON properties to be placedo over a SS_BITMAP CStatic. i have tried many combinations, but i just can't get it right! can anybody help? or are there other way's to do it? thanks, eugi www.eugigames.tk

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      You will need to ensure the tab order is correct so the "lower" static control draws before the "upper" one. You'll probably also need to give them both the WS_EX_CLIPSIBLINGS style, and maybe the WS_EX_TRANSPARENT style so that they redraw when necessary without stepping on each other.

      Shog9

      I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong...

      E 1 Reply Last reply
      0
      • S Shog9 0

        You will need to ensure the tab order is correct so the "lower" static control draws before the "upper" one. You'll probably also need to give them both the WS_EX_CLIPSIBLINGS style, and maybe the WS_EX_TRANSPARENT style so that they redraw when necessary without stepping on each other.

        Shog9

        I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong...

        E Offline
        E Offline
        eugi
        wrote on last edited by
        #3

        thanks! i'll try it and i'll let you know! ;) www.eugigames.tk

        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