Windows CE Application FULL SCREEN

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want my application to be over the taskbar an implicit the start incon,I
used SHFullSCreen, but it did.t hide the taskbar or the start icon.How can i
do it?
 
Hi,

try this (VB code)

Declare Function FindWindow Lib "coredll.dll" (ByVal className As
String, ByVal windowName As String) As Integer
Declare Function ShowWindow Lib "coredll.dll" (ByVal hWnd As Integer,
ByVal nCmdShow As Integer) As Integer
Declare Function EnableWindow Lib "coredll.dll" (ByVal hWnd As Integer,
ByVal bEnable As Boolean) As Integer

Dim hWnd As Integer
hWnd = FindWindow("HHTaskBar".ToCharArray(), Nothing)
EnableWindow(hWnd, False)
ShowWindow(hWnd, 0)


Regards

ACP
 
If you are using WindowsCE then SHFullScreen will not work (it only
exists in PPC). You may change a window Z-Order to topmost using this
code snippet in the form Load event:

Capture = true;
IntPtr hwnd = Win32Window.GetCapture();
Capture = false;

Win32Window.SetWindowPos(hwnd,
Win32Window.SetWindowPosZOrder.HWND_TOPMOST, 0, 0,
Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height, 0);



Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Hi it works bu i have to make the application larger than the screen size.
But i stiil can move the window and i can prevent this by maximixing the
form. in this case it happens that the form is resizing and i can see an
empty space on the lower part of the scrren where the taskbar was.
 
can u give me the part of Win32Window where u define setwindowposZOrder
because i can't find the value for HWND_TOPMOST
 
Capture = true;
IntPtr hwnd = Win32.GetCapture();
Capture = false;
this.WindowState=FormWindowState.Maximized;
Win32.SetWindowPos(hwnd,new IntPtr(-1), 0,
0,Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, 0);

i did it thanks
i had to maximize the form and no i can't drag the window no more
 
Back
Top