|
Home > Archive > FoxPro Help and Support > July 2005 > Auto-hide the taskbar
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Auto-hide the taskbar
|
|
| Richard Clarke 2005-07-26, 11:25 am |
| does anyone know how to auto-hide the windows taskbar
--
Richard Clarke
| |
| Mike Gagnon 2005-07-26, 8:25 pm |
| MESSAGEBOX("Click OK to hide the taskbar")
HideTaskBar()
FUNCTION HideTaskBar
DECLARE LONG FindWindow IN "user32" STRING lpClassName, STRING
lpWindowName
DECLARE LONG SetWindowPos IN "user32" LONG hWnd, LONG hWndInsertAfter,
LONG x, LONG Y, LONG cx, LONG cy, LONG wFlags
#DEFINE WINDOWHIDE 0x80
#DEFINE WINDOWSHOW 0x40
LOCAL lnHandle
lnHandle = FindWindow("Shell_TrayWnd", "")
SetWindowPos(lnHandl
e, 0, 0, 0, 0, 0, WINDOWHIDE)
ENDFUNC
"Richard Clarke" < richardclarke@discus
sions.microsoft.com> wrote in message
news:1AEF827D-72DB-452D-AD1E- 5A8AC732E6D4@microso
ft.com...
> does anyone know how to auto-hide the windows taskbar
> --
> Richard Clarke
| |
| Richard Clarke 2005-07-26, 8:25 pm |
| Hi Mike,
I didn't explain very well! If you hide the taskbar, as your program does,
the area occupied by the taskbar isn't available unless you set auto-hide on
in the taskbar properties. Once auto-hide is the taskbar area can be used.
I have an appication that runs on a touch screen computer, that doesn't have
a conventional keyboard or mouse attached so I am trying to find a way of
setting the taskbar property to auto-hide via dll's.
--
Richard Clarke
"Richard Clarke" wrote:
> does anyone know how to auto-hide the windows taskbar
> --
> Richard Clarke
| |
| Mike Gagnon 2005-07-30, 7:24 am |
|
Here is a quote from MSDN
"The taskbar supports two display options: Auto Hide and Always On Top. To
set these options, the user must open the taskbar shortcut menu, click
Properties, and select or clear the Auto Hide check box or the Always On Top
check box. There is no way to set these options programmatically. To
retrieve the state of these display options, use the ABM_GETSTATE message.
If you would like to be notified when the state of these display options
changes, process the ABN_STATECHANGE notification message in your window
procedure.
The work area is the portion of the screen not obscured by the taskbar. To
retrieve the size of the work area, call the SystemParametersInfo
function
with the SPI_GETWORKAREA value set. To retrieve the rectangle coordinates
that describe the location of the taskbar, use the ABM_GETTASKBARPOS
message."
So there is no registry entry way to change this.
"Richard Clarke" < richardclarke@discus
sions.microsoft.com> wrote in message
news:1ADCBCFF-A6D7-4EB8-A769- E692E6BEF5BE@microso
ft.com...[color=darkred]
> Hi Mike,
>
> I didn't explain very well! If you hide the taskbar, as your program
> does,
> the area occupied by the taskbar isn't available unless you set auto-hide
> on
> in the taskbar properties. Once auto-hide is the taskbar area can be
> used.
>
> I have an appication that runs on a touch screen computer, that doesn't
> have
> a conventional keyboard or mouse attached so I am trying to find a way of
> setting the taskbar property to auto-hide via dll's.
>
> --
> Richard Clarke
>
>
> "Richard Clarke" wrote:
>
|
|
|
|
|