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. Show desktop

Show desktop

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

    Can anyone tell me, how can I implement Show desktop button without IShellDispatch4 object? Well I can get desktop window handle, I can go through list of child windows and minimize them, but not all of theese are aplicable. Thank You Jirka

    J 1 Reply Last reply
    0
    • O obr

      Can anyone tell me, how can I implement Show desktop button without IShellDispatch4 object? Well I can get desktop window handle, I can go through list of child windows and minimize them, but not all of theese are aplicable. Thank You Jirka

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      I haven't tried this, but I've got the hunch it should work: in your windows directory there's a shortcut file named Show Desktop.sfc. If you invoke it programmatically with ShellExecute the desktop should be bringed to the foreground. This has two problems:

      1. In non-English versions of Windows, this shortcut file has a different name.
      2. This file is not present in Windows 95 (I think)

      To workaround these two issues, simply copy and paste the shortcut to your app directory, rename it to whatever you please and execute this instead. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      O 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        I haven't tried this, but I've got the hunch it should work: in your windows directory there's a shortcut file named Show Desktop.sfc. If you invoke it programmatically with ShellExecute the desktop should be bringed to the foreground. This has two problems:

        1. In non-English versions of Windows, this shortcut file has a different name.
        2. This file is not present in Windows 95 (I think)

        To workaround these two issues, simply copy and paste the shortcut to your app directory, rename it to whatever you please and execute this instead. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        O Offline
        O Offline
        obr
        wrote on last edited by
        #3

        It is what I don't want. This script call IShellDispatch4 method. Problem is, that copy .scf file is not enough. You need IShelDispatch4 interface, that You don't find on W95 and also on WindowsNT. Jirka

        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