Results 1 to 4 of 4

Thread: get size of the desktop exluding taskbar??

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732

    Angry get size of the desktop exluding taskbar??

    Hi all,

    Does anyone know of a way to retrieve the size of the desktop window, exluding the taskbar???

    I have used the get desktop window API, and get Window Rect API together but It includes the taskbar in the size of the window.. Is there a way round this...

    If not the how can I retrieve a handle to the taskbar and calculate the size of the desktop...
    Leather Face is comin...


    MCSD

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    Thanks Hack, I had found a way round it by retrieveing the taskbar size... and calculating but your way is much better.


    Cheers..
    Leather Face is comin...


    MCSD

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    That is a pretty cool routine. I have a routine that will tell me the taskbar position and size, but I didn't have one that gave me the desktop area minus the taskbar, so I'm glad you asked you question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width