coredll is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for FindWindowW in other DLLs exists, click on Find References to the right.
try
{
// Find the handle to the Start Bar
handle = FindWindowCE("HHTaskBar", null);
// If the handle is found then hide the start bar
if (handle != IntPtr.Zero)
{
// Hide the start bar
SetWindowPos(handle, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);
}
}
catch
{
MessageBox.Show("Could not hide Start Bar.");
}
}
public void ShowStartBar()
{
IntPtr handle;
try
{
// Find the handle to the Start Bar
handle = FindWindowCE("HHTaskBar", null);
// If the handle is found then show the start bar
if (handle != IntPtr.Zero)
{
// Show the start bar
SetWindowPos(handle, 0, 0, 0, 240, 26, SWP_SHOWWINDOW);
}
}
catch
{
MessageBox.Show("Could not show Start Bar.");
}
}
TODO - a short description
17/04/2009 15:17:26 - -72.58.80.209
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).
NEW: ANTS Memory Profiler 5 just released!
Memory Profiling made simple!
Download your free trial now. This download also contains the FREE PInvoke.net VS Add-in