CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    98

    Taskbar location

    Hello,

    Please let me know how to know the taskbar location whenther the bar is located on the left, the right, the top or the bottom ...

    Thanks

  2. #2
    Join Date
    May 2005
    Posts
    4,948

    Re: Taskbar location

    Code:
      HWND hTaskBar = ::FindWindow("Shell_TrayWnd",0);
      if ( hTaskBar )
      {
        RECT rc;
        ::GetWindowRect(hTaskBar,&rc);
        // rc holds the taskbar rectangle
      }
    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

+ Reply to Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width