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. What's the workspace coordinates in WINDOWS ?

What's the workspace coordinates in WINDOWS ?

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

    From MSDN "Workspace coordinates differ from screen coordinates in that they take the locations and sizes of application toolbars (including the taskbar) into account. Workspace coordinate (0,0) is the upper-left corner of the workspace area, the area of the screen not being used by application toolbars" I am very comfused about the paragraph above. I know what taskbar is, it locates in the bottom of my screen, containing application icons.but what is application toolbars? It sure doesn't mean the toolbar on the app UI that resembles the menu functions. could someone help me?

    C 1 Reply Last reply
    0
    • C Cold_Fearing_Bird

      From MSDN "Workspace coordinates differ from screen coordinates in that they take the locations and sizes of application toolbars (including the taskbar) into account. Workspace coordinate (0,0) is the upper-left corner of the workspace area, the area of the screen not being used by application toolbars" I am very comfused about the paragraph above. I know what taskbar is, it locates in the bottom of my screen, containing application icons.but what is application toolbars? It sure doesn't mean the toolbar on the app UI that resembles the menu functions. could someone help me?

      C Offline
      C Offline
      Charles Oppermann
      wrote on last edited by
      #2

      Between Windows 95 and Windows Vista, you used to be able to have multiple-docked toolbars called "deskbands", like a Address deskband docked to the left side of the screen. Like the Tasbar, Deskbands could be set to Autohide. If they aren't hidden, then the available workarea is reduced. Here is code that I use to find out the available work area:

      // SPI_GETWORKAREA
      // Retrieves the size of the work area on the primary display monitor.
      // The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars.
      // The pvParam parameter must point to a RECT structure that receives the coordinates of the work area, expressed in virtual screen coordinates.
      // To get the work area of a monitor other than the primary display monitor, call the GetMonitorInfo function.
      printf("Work Area size:\t");
      RECT rectWorkArea;
      bool bSuccess = SystemParametersInfo(SPI_GETWORKAREA, 0, &rectWorkArea, 0);

      /* Charles Oppermann */ http://weblogs.asp.net/chuckop

      C 1 Reply Last reply
      0
      • C Charles Oppermann

        Between Windows 95 and Windows Vista, you used to be able to have multiple-docked toolbars called "deskbands", like a Address deskband docked to the left side of the screen. Like the Tasbar, Deskbands could be set to Autohide. If they aren't hidden, then the available workarea is reduced. Here is code that I use to find out the available work area:

        // SPI_GETWORKAREA
        // Retrieves the size of the work area on the primary display monitor.
        // The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars.
        // The pvParam parameter must point to a RECT structure that receives the coordinates of the work area, expressed in virtual screen coordinates.
        // To get the work area of a monitor other than the primary display monitor, call the GetMonitorInfo function.
        printf("Work Area size:\t");
        RECT rectWorkArea;
        bool bSuccess = SystemParametersInfo(SPI_GETWORKAREA, 0, &rectWorkArea, 0);

        /* Charles Oppermann */ http://weblogs.asp.net/chuckop

        C Offline
        C Offline
        Cold_Fearing_Bird
        wrote on last edited by
        #3

        I use WINXP. All I know is the taskbar can be docked to the four sides of the screen and can be autohided.How can I bring up the application toolbar ?

        C 1 Reply Last reply
        0
        • C Cold_Fearing_Bird

          I use WINXP. All I know is the taskbar can be docked to the four sides of the screen and can be autohided.How can I bring up the application toolbar ?

          C Offline
          C Offline
          Charles Oppermann
          wrote on last edited by
          #4

          Check this link: http://en.wikipedia.org/wiki/Taskbar#Desktop_toolbars[^] Right-click on the taskbar, choose toolbars, pick one. Ensure the Taskbar is Unlocked and then drag the new toolbar off and over to another edge.

          /* Charles Oppermann */ http://weblogs.asp.net/chuckop

          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