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. Draw on view and over their controls [modified]

Draw on view and over their controls [modified]

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

    Hi everybody, i like to draw a loading rect on a view and overlay a "shadow" on the entire view. I made the shadow this way :

    for(int x=0; x<rect.width();{
    for(int y=0; y<rect.height();{
    pDC->SetPixel(x,y,RGB(0,0,0));
    }
    }

    But the shadow isn't drawn over the controls. Rather the controls are drawn over the shadow :) Is there a possibility to do that? Big thanks for help :rose:

    modified on Friday, November 7, 2008 4:37 AM

    N 1 Reply Last reply
    0
    • B baerten

      Hi everybody, i like to draw a loading rect on a view and overlay a "shadow" on the entire view. I made the shadow this way :

      for(int x=0; x<rect.width();{
      for(int y=0; y<rect.height();{
      pDC->SetPixel(x,y,RGB(0,0,0));
      }
      }

      But the shadow isn't drawn over the controls. Rather the controls are drawn over the shadow :) Is there a possibility to do that? Big thanks for help :rose:

      modified on Friday, November 7, 2008 4:37 AM

      N Offline
      N Offline
      Nishad S
      wrote on last edited by
      #2

      Well... :) What about creating a popup dialog without caption and borders and drawing whatever you want...? Hint: Have a try to WS_EX_TRANSPARENT style too...

      - NS - [ODBaseBtn]

      B 1 Reply Last reply
      0
      • N Nishad S

        Well... :) What about creating a popup dialog without caption and borders and drawing whatever you want...? Hint: Have a try to WS_EX_TRANSPARENT style too...

        - NS - [ODBaseBtn]

        B Offline
        B Offline
        baerten
        wrote on last edited by
        #3

        Yepp, thats the easiest solution But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable. WS_EX_TRANSPARENT Ok, i'll google after this Thanks :) If you have further ideas how to resolve this problem, i would be very happy ;)

        N 1 Reply Last reply
        0
        • B baerten

          Yepp, thats the easiest solution But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable. WS_EX_TRANSPARENT Ok, i'll google after this Thanks :) If you have further ideas how to resolve this problem, i would be very happy ;)

          N Offline
          N Offline
          Nishad S
          wrote on last edited by
          #4

          baerten wrote:

          But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable.

          Ofcourse, you can continue the work, if you create the dialog as modeless... :)

          - NS - [ODBaseBtn]

          B 1 Reply Last reply
          0
          • N Nishad S

            baerten wrote:

            But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable.

            Ofcourse, you can continue the work, if you create the dialog as modeless... :)

            - NS - [ODBaseBtn]

            B Offline
            B Offline
            baerten
            wrote on last edited by
            #5

            Okay, i see ... If the working view gets the focus, i show up the modeless dialog. Because if i don't do it, the user couldn't see to which view has a "waiting dialog" Thanks for the idea :)

            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