English
Source / code snippets

Höhe Taskbar Taskbar

 

Thomas
Zielinski
Hello people,

its still so the Windows To windows The Taskbar a different höhe has or. the User the höhe verstellt. with
CompileMarkSeparation
Window 0 , 0 - %MaxX , %MaxY
>

becomes The Taskbar covers. with
CompileMarkSeparation
Window 0 , 0 - %MaxX , (%MaxY-1)
>

covers The Taskbar the program.

How can I now The höhe the Taskbar to determine?

with XP with standarthöhe have I 30Pixel rausgefunden. means:
CompileMarkSeparation
Window 0 , 0 - %MaxX , (%MaxY-30)
>

still has not eachone so.

thanks already time!
Greeting Thomas
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
11/05/07  
 




Dieter
Zornow
so get The Taskbarhoehe, you should but rather the entire Workarea detect
CompileMarkSeparation
Def SHTaskbarheight(2) !SHELL32,SHAppBarMessage

Proc GetTaskbarHeight

    Declare result&,Taskbar#
    Dim Taskbar#,36
    Clear Taskbar#
    Long Taskbar#,0=36
    SHTaskbarheight(5,Taskbar#)
    Let result&=Long(Taskbar#,28)
    Let result&=result& - Long(Taskbar#,20)
    Dispose Taskbar#
    Return result&

EndProc

Beispiel:
cls
Print GetTaskBarHeight()
CompileMarkSeparation
DEF SysParameterInfo(4) ! user32,SystemParametersInfoA
Declare WX%,WY%,WL%,WB%

Proc workarea

    Declare Rect#
    Dim Rect#,16
    SysParameterInfo(48,0,Rect#,0)
    let wx%=Long(Rect#,0)
    let wy%=Long(Rect#,4)
    let wl%=Long(Rect#,8)
    let wb%=Long(Rect#,12)
    Dispose Rect#

endproc

workarea()

greeting from Bangkok

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
11/05/07  
 




Thomas
Zielinski
once I to dwell komm, probier Ich´s from.
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
11/05/07  
 




Thomas
Zielinski
Have because Code GetTaskbarHeight() ausprobiert and it klapt wonderful. Jetz have I no Anzeigefehler More. thanks once more!
Greeting Thomas
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
11/06/07  
 



GetTaskbarHeight would I even not use because The Taskbar can on eachone Bildschirmseite paste. rather uses You The Proc workarea because these relating too others Toolbars with one which the User vlt. on whom edge pasted has.
 
11/06/07  
 




Thomas
Zielinski
on it Have I garnich virtual! then building I hold again everything circa.
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
11/06/07  
 




Thomas
Zielinski
functions too wonderful.
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
11/07/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.444 Views

Untitledvor 0 min.
Georg Teles vor 26 Tagen
RudiB.02/04/22
Frank04/16/21
p.specht12/15/20
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie