B
Bogdan Sima
Hello All,
I am trying to write an application which is supposed to work full screen. I
am using Windows CE .Net 4.2 and the compact framework.
Not being able to find any method of displaying the app full screen in the
compact framework, I tried to use the native API.
So, after I called FindWindow to get the handle of the taskbar window, then
ShowWindow to hide the taskbar and then BringWindowToTop to bring my
application's window to the top, the taskbar is still visible. Here's the
snippet:
int taskBarHWnd = FindWindow( "HHTaskBar", string.Empty );
ShowWindow( taskBarHWnd, SW_HIDE );
int myHWnd = GetForegroundWindow();
BringWindowToTop( myHWnd );
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
Note: all the window handles returned by the native API functions are valid.
What am I doing wrong? Is there any method of creating a full screen app in
Windows CE .Net 4.2?
I also tried using the PocketPC extensions, without results.
I really believe/hope there is a way to create a full screen app in Win CE
..Net. After all, I don't think the user of an "alarm panel" type device
should have access to the taskbar.
Microsoft, please read: Not including a proper API to allow this behavior in
the .Net framework is a major design flaw. With all regrets, this is the
type of issue that can switch us to Embedded Linux.
Regards,
BG
I am trying to write an application which is supposed to work full screen. I
am using Windows CE .Net 4.2 and the compact framework.
Not being able to find any method of displaying the app full screen in the
compact framework, I tried to use the native API.
So, after I called FindWindow to get the handle of the taskbar window, then
ShowWindow to hide the taskbar and then BringWindowToTop to bring my
application's window to the top, the taskbar is still visible. Here's the
snippet:
int taskBarHWnd = FindWindow( "HHTaskBar", string.Empty );
ShowWindow( taskBarHWnd, SW_HIDE );
int myHWnd = GetForegroundWindow();
BringWindowToTop( myHWnd );
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
Note: all the window handles returned by the native API functions are valid.
What am I doing wrong? Is there any method of creating a full screen app in
Windows CE .Net 4.2?
I also tried using the PocketPC extensions, without results.
I really believe/hope there is a way to create a full screen app in Win CE
..Net. After all, I don't think the user of an "alarm panel" type device
should have access to the taskbar.
Microsoft, please read: Not including a proper API to allow this behavior in
the .Net framework is a major design flaw. With all regrets, this is the
type of issue that can switch us to Embedded Linux.
Regards,
BG