[Bug 274] New: Audacity is covered by the taskbar if the task bar is in top or left edge

1 Message Forum Options Options
Embed this topic
Permalink
Bugzilla from bugzilla-daemon@zim.dreamhost.com
[Bug 274] New: Audacity is covered by the taskbar if the task bar is in top or left edge
Reply Threaded MoreMore options
Print post
Permalink
http://limpet.net/audacity/bugzilla/show_bug.cgi?id=274

           Summary: Audacity is covered by the taskbar if the task bar is in
                    top or left edge
           Product: Audacity
           Version: CVS Trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: audacity-bugs@...
        ReportedBy: wh_hsn@...


If the user changes the location of the taskbar the main  Audacity Window is
positioned behind the taskbar.

To fix this I added the following code in

#ifdef __WXMSW__
   defRect->height += 40;  //WH: was originally there - not sure what's it
for?!

   //WH: taking care of TaskBar position and size
        #include "shellapi.h"
        APPBARDATA abd;

    // Specify the structure size and handle to the appbar.
    abd.cbSize = sizeof(APPBARDATA);
    abd.hWnd = FindWindow(NULL, "Shell_TrayWnd");
        SHAppBarMessage(ABM_GETTASKBARPOS, &abd);

        switch(abd.uEdge)
        {// we are only concerned if the bar is on the top or to the left edges
        case ABE_LEFT :
                defRect->x += abd.rc.right;
                break;
        case ABE_TOP :
                defRect->y += abd.rc.bottom;
                break;
        }
       
#endif



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Audacity-bugs mailing list
Audacity-bugs@...
https://lists.sourceforge.net/lists/listinfo/audacity-bugs