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. do you have researched desktop message, can you share your fruit to me?

do you have researched desktop message, can you share your fruit to me?

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

    do you have researched desktop messages, can you share your fruit to me? for ins, if i refresh destop, what message does the desktop gain? thank you very much

    C 1 Reply Last reply
    0
    • N nenfa

      do you have researched desktop messages, can you share your fruit to me? for ins, if i refresh destop, what message does the desktop gain? thank you very much

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      It is not clear what you want to do but i will assume you want to force the desktop to be redrawn, try this:

      ::InvalidateRect(NULL, NULL, TRUE);

      and see if it produces what you wish or not.

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

      N 1 Reply Last reply
      0
      • C Code o mat

        It is not clear what you want to do but i will assume you want to force the desktop to be redrawn, try this:

        ::InvalidateRect(NULL, NULL, TRUE);

        and see if it produces what you wish or not.

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

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

        thank you all the same, but i want the message whick desktop gains when i refresh desktop, i use spy++, but too message to distinguish

        C 1 Reply Last reply
        0
        • N nenfa

          thank you all the same, but i want the message whick desktop gains when i refresh desktop, i use spy++, but too message to distinguish

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          What exactly do you mean by "refresh"?

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

          N 1 Reply Last reply
          0
          • C Code o mat

            What exactly do you mean by "refresh"?

            > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

            N Offline
            N Offline
            nenfa
            wrote on last edited by
            #5

            "refresh" just is a action for repainting the desktop, you can do the action by pressing right mouse button on the desktop and clicking the refurbish item on the pop-up menu

            C 1 Reply Last reply
            0
            • N nenfa

              "refresh" just is a action for repainting the desktop, you can do the action by pressing right mouse button on the desktop and clicking the refurbish item on the pop-up menu

              C Offline
              C Offline
              Code o mat
              wrote on last edited by
              #6

              So, i used spy++ too, turning off the logging of lstview messages and here is what i found: after you select the "Refresh" item from the popup menu, the desktop(which seems to be a "SysListView32", or have one on it) seems to receive a (WM_USER+3152) message, with wParam set to zero and lParam set to 0xFF000000, after this, it seems to start refreshing itself, turns off its own redrawing (WM_SETREDRAW), removes all the items in it, meaning the icons (LVM_DELETEALLITEMS), inserts them again (LVM_INSERTITEM), then turns back on redrawing and redraws itself (WM_ERASEBACKGROUND, WM_PAINT). I have no idea what you want to do and why you need this, or if i actually posted what you require. This is on Windows XP Pro SP3. So does this help anything?

              > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

              N 1 Reply Last reply
              0
              • C Code o mat

                So, i used spy++ too, turning off the logging of lstview messages and here is what i found: after you select the "Refresh" item from the popup menu, the desktop(which seems to be a "SysListView32", or have one on it) seems to receive a (WM_USER+3152) message, with wParam set to zero and lParam set to 0xFF000000, after this, it seems to start refreshing itself, turns off its own redrawing (WM_SETREDRAW), removes all the items in it, meaning the icons (LVM_DELETEALLITEMS), inserts them again (LVM_INSERTITEM), then turns back on redrawing and redraws itself (WM_ERASEBACKGROUND, WM_PAINT). I have no idea what you want to do and why you need this, or if i actually posted what you require. This is on Windows XP Pro SP3. So does this help anything?

                > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

                N Offline
                N Offline
                nenfa
                wrote on last edited by
                #7

                i'm so glad for your patient answer though i don't need it any more

                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