1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23:
| procedure TaskBarOnTop(bOnTop: boolean); var hApp: HWND; begin hApp := FindWindow('Shell_TrayWnd', ''); if hApp <> 0 then begin if bOnTop then setWindowPos(hApp,HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE) else setWindowPos(hApp,HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE); end; end;
procedure SetTaskBarOnTop; begin TaskBarOnTop(True); end;
procedure SetTaskBarAtBottom; begin TaskBarOnTop(False); end; |