Page 1 of 1
Fullscreen with CE 5.0
Posted: Mon Aug 23, 2010 6:13 pm
by Otto
To all,
Does someone know how to bring the taskbar in background with CE 5.0?
I use:
ShFullScreen( oWnd:hwnd, SHFS_HIDESTARTICON )
ShFullScreen( oWnd:hwnd, SHFS_HIDETASKBAR )
ShFullScreen( oWnd:hwnd, SHFS_HIDESIPBUTTON )
but with this new CE 5.o device the TASKBAR is still there.
Thanks in advance
Otto
Re: Fullscreen with CE 5.0
Posted: Tue Aug 24, 2010 12:27 am
by Antonio Linares
Otto,
Try this:
ShowWindow( FindWindow( "Shell_TrayWnd", 0 ), 0 )
viewtopic.php?p=15392#p15392
Re: Fullscreen with CE 5.0
Posted: Tue Aug 24, 2010 3:13 pm
by Otto
Hello Antonio,
thank you for your answer.
I tried your suggestion but with no success. Where exactly should I insert the line.
I tried before the “define window” and in “ON INIT”.
It is the Titlebar which I need to hide.
Thanks in advance
Otto
Re: Fullscreen with CE 5.0
Posted: Tue Aug 24, 2010 4:43 pm
by Maurizio
Ciao Otto
Start - Setting - Taskbar and Start Menu
Maurizio
Re: Fullscreen with CE 5.0
Posted: Wed Aug 25, 2010 6:39 am
by Otto
Hello Mauricio,
thank you for your help.
But I need to switch off titlebar.
This is only working for taskbar.
Do you have another idea?
Best regards,
Otto
Re: Fullscreen with CE 5.0
Posted: Wed Aug 25, 2010 9:30 am
by Antonio Linares
Otto,
Do you mean that you want to show a window without its caption ?
Re: Fullscreen with CE 5.0
Posted: Wed Aug 25, 2010 9:45 am
by Antonio Linares
Otto,
In FWPPC Class TWindow you have to modify this line:
Code: Select all | Expand
...
if ::ClassName() == "TWINDOW" .and. GetPlatform() != "PocketPC" // Windows CE requiremnt
::nStyle = nOr( ::nStyle, WS_SYSMENU ) // , WS_CAPTION )
endif
Re: Fullscreen with CE 5.0
Posted: Wed Aug 25, 2010 2:43 pm
by Antonio Linares
Otto,
If you don't want to modify the original Class TWindow then you can do it this way:
Code: Select all | Expand
#include "FWCE.ch"
function Main()
local oWnd := TMyWindow():New()
ACTIVATE WINDOW oWnd ;
ON CLICK oWnd:End()
return nil
CLASS TMyWindow FROM TWindow
CLASSDATA lRegistered AS LOGICAL INIT .F.
ENDCLASS
Re: Fullscreen with CE 5.0
Posted: Wed Aug 25, 2010 4:08 pm
by Otto
Hello Antonio,
thank you very much. The program program is working now without a titlebar.
BEst regards,
Otto