Yet again a much asked question: full screen

L

Lisa Pearlson

Hi,

I am reposting my question of a few weeks ago because I got no response.

I was using this CDialog based baseclass STFullScreen from
http://www.pocketpcdn.com/articles/stfullscreen.html

This worked fine on PPC 2002 but seems ineffective under PPC 2003.

It seems PPC 2003 behaves different enough with hiding start and sip menu's
and perhaps with windows positions or whatever, to cause my PPC 2002 app to
become useless.

In CE 4.2, my application comes up in full screen, but as soon as I click
anywhere in the screen, the menu bars appear again, and for some reason, I
can't even exit my application anymore, buttons click, but do not seem to
process messages, as the buttons animate, but do not seem to process the
on_click messages. Anyway, those are specifics to my source code and the
above mentioned base class I think so in general:

Can someone just tell me how to, or reference me to some resource, where I
can make full screen DIALOG BASED apps, which work on both PPC2002 (CE 3.x)
and PPC2003 (CE 4.2) ?

Lisa
 
M

M.Eger

I used this code on CE 4.2 to show the dialog fullscreen

In OnInitDialog:

CRect Rect;
::SystemParametersInfo (SPI_GETWORKAREA, 0, Rect, 0);
MoveWindow (Rect);

Greetings,
Eger
 
M

Marius

Hi,

My application runs in fullscreen w/o any problems... [Windows CE 3.0] I did
not use any of those STFullScreen, etc, etc.. All I did was to make the size
of my dialog the size of the screen [say 640x480] and then, in my
OnInitDialog of my main dialog I just did this:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

So, my application was "full screen" and there was no way the user could
activate the taskbar..

Then, when you exit your application you do:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

And that's it.

Use SPY++ to make sure your taskbar's name is "HHTaskBar" because maybe it
varies from CE to CE.. I am not sure...

Marius
 
M

Marius

... I meant, when you exit your application you do a ShowWindow(SW_SHOW) not
SW_HIDE :)

Marius

Marius said:
Hi,

My application runs in fullscreen w/o any problems... [Windows CE 3.0] I did
not use any of those STFullScreen, etc, etc.. All I did was to make the size
of my dialog the size of the screen [say 640x480] and then, in my
OnInitDialog of my main dialog I just did this:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

So, my application was "full screen" and there was no way the user could
activate the taskbar..

Then, when you exit your application you do:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

And that's it.

Use SPY++ to make sure your taskbar's name is "HHTaskBar" because maybe it
varies from CE to CE.. I am not sure...

Marius



Lisa Pearlson said:
Hi,

I am reposting my question of a few weeks ago because I got no response.

I was using this CDialog based baseclass STFullScreen from
http://www.pocketpcdn.com/articles/stfullscreen.html

This worked fine on PPC 2002 but seems ineffective under PPC 2003.

It seems PPC 2003 behaves different enough with hiding start and sip menu's
and perhaps with windows positions or whatever, to cause my PPC 2002 app to
become useless.

In CE 4.2, my application comes up in full screen, but as soon as I click
anywhere in the screen, the menu bars appear again, and for some reason, I
can't even exit my application anymore, buttons click, but do not seem to
process messages, as the buttons animate, but do not seem to process the
on_click messages. Anyway, those are specifics to my source code and the
above mentioned base class I think so in general:

Can someone just tell me how to, or reference me to some resource, where I
can make full screen DIALOG BASED apps, which work on both PPC2002 (CE 3.x)
and PPC2003 (CE 4.2) ?

Lisa
 
L

Lisa Pearlson

This doesn't make the window full screen, as the task bar and menu bar and
sip buttons are still visible (the bar above and below your screen).

What you are doing is already automatically done, as the default of
m_bFullScreen = TRUE of CDialog on CE.
 
L

Lisa Pearlson

This gets rid of the Task bar (start menu), but not the bar on the bottom of
the screen, the one with the SIP button.
I can also hide the SIP button using the same FindWindow technique, but the
bar itself (control bar?) won't go away.


Marius said:
Hi,

My application runs in fullscreen w/o any problems... [Windows CE 3.0] I did
not use any of those STFullScreen, etc, etc.. All I did was to make the size
of my dialog the size of the screen [say 640x480] and then, in my
OnInitDialog of my main dialog I just did this:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

So, my application was "full screen" and there was no way the user could
activate the taskbar..

Then, when you exit your application you do:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

And that's it.

Use SPY++ to make sure your taskbar's name is "HHTaskBar" because maybe it
varies from CE to CE.. I am not sure...

Marius



Lisa Pearlson said:
Hi,

I am reposting my question of a few weeks ago because I got no response.

I was using this CDialog based baseclass STFullScreen from
http://www.pocketpcdn.com/articles/stfullscreen.html

This worked fine on PPC 2002 but seems ineffective under PPC 2003.

It seems PPC 2003 behaves different enough with hiding start and sip menu's
and perhaps with windows positions or whatever, to cause my PPC 2002 app to
become useless.

In CE 4.2, my application comes up in full screen, but as soon as I click
anywhere in the screen, the menu bars appear again, and for some reason, I
can't even exit my application anymore, buttons click, but do not seem to
process messages, as the buttons animate, but do not seem to process the
on_click messages. Anyway, those are specifics to my source code and the
above mentioned base class I think so in general:

Can someone just tell me how to, or reference me to some resource, where I
can make full screen DIALOG BASED apps, which work on both PPC2002 (CE 3.x)
and PPC2003 (CE 4.2) ?

Lisa
 
M

Marius

I am not sure what kind of system you have; I have one that is like a
Handheld which does not have these issues. What you can do is trying to use
Remote SPY++ and see if you can find the names of the windows that you are
trying to get rid of, get a handle to them and hide them...

Marius

Lisa Pearlson said:
This gets rid of the Task bar (start menu), but not the bar on the bottom of
the screen, the one with the SIP button.
I can also hide the SIP button using the same FindWindow technique, but the
bar itself (control bar?) won't go away.


Marius said:
Hi,

My application runs in fullscreen w/o any problems... [Windows CE 3.0] I did
not use any of those STFullScreen, etc, etc.. All I did was to make the size
of my dialog the size of the screen [say 640x480] and then, in my
OnInitDialog of my main dialog I just did this:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

So, my application was "full screen" and there was no way the user could
activate the taskbar..

Then, when you exit your application you do:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

And that's it.

Use SPY++ to make sure your taskbar's name is "HHTaskBar" because maybe it
varies from CE to CE.. I am not sure...

Marius



Lisa Pearlson said:
Hi,

I am reposting my question of a few weeks ago because I got no response.

I was using this CDialog based baseclass STFullScreen from
http://www.pocketpcdn.com/articles/stfullscreen.html

This worked fine on PPC 2002 but seems ineffective under PPC 2003.

It seems PPC 2003 behaves different enough with hiding start and sip menu's
and perhaps with windows positions or whatever, to cause my PPC 2002
app
to
become useless.

In CE 4.2, my application comes up in full screen, but as soon as I click
anywhere in the screen, the menu bars appear again, and for some
reason,
where
 
L

Lisa Pearlson

Nah, I had to do this:
::CommandBar_Show(m_pWndEmptyCB->m_hWnd, FALSE);

Solved the problem.

Marius said:
I am not sure what kind of system you have; I have one that is like a
Handheld which does not have these issues. What you can do is trying to use
Remote SPY++ and see if you can find the names of the windows that you are
trying to get rid of, get a handle to them and hide them...

Marius

Lisa Pearlson said:
This gets rid of the Task bar (start menu), but not the bar on the
bottom
of
the screen, the one with the SIP button.
I can also hide the SIP button using the same FindWindow technique, but the
bar itself (control bar?) won't go away.


Hi,

My application runs in fullscreen w/o any problems... [Windows CE 3.0]
I
did
not use any of those STFullScreen, etc, etc.. All I did was to make
the
size
of my dialog the size of the screen [say 640x480] and then, in my
OnInitDialog of my main dialog I just did this:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

So, my application was "full screen" and there was no way the user could
activate the taskbar..

Then, when you exit your application you do:

CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);

And that's it.

Use SPY++ to make sure your taskbar's name is "HHTaskBar" because
maybe
it reason, seem
to where
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top