Home > Archive > Smartphone Developer Forum > March 2006 > full screen app in smartphone
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
full screen app in smartphone
|
|
| marwarn 2006-03-16, 3:58 am |
| I'm developing a smartphone app using eVC4. I
need the app to be in full screen mode , I resized my app window
but the title bar is on the top my app. In fact, the
top part of my main window is hidden behind the title bar.
am I missing something here?
my code:
if (m_bFullScreen)
{
GetWindowRect(&m_rcWindowSave);
::ShowWindow(m_hWndMenuBar, SW_HIDE);
SetWindowPos(&wndTop, 0, 0, GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW|SWP_FRAMECHANGED);
}
else
{
::ShowWindow(m_hWndMenuBar, SW_SHOW);
SetWindowPos(NULL, m_rcWindowSave.left, m_rcWindowSave.top,
m_rcWindowSave.Width(), m_rcWindowSave.Height(), SWP_SHOWWINDOW);
}
Any help would be appreciated.
| |
|
| marwarn wrote:
> I'm developing a smartphone app using eVC4. I
>
> need the app to be in full screen mode , I resized my app window
>
> but the title bar is on the top my app. In fact, the
>
> top part of my main window is hidden behind the title bar.
>
> am I missing something here?
by the looks of it:
SHFullScreen()
riki
----
I sold my soul to the Devil but he auctioned it off on Ebay
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
| |
| marwarn 2006-03-20, 3:58 am |
| I added the code as following:
::SetForegroundWindow(m_hWnd);
::SHFullScreen(m_hWnd, SHFS_HIDETASKBAR);
GetWindowRect(&m_rcWindowSave);
::ShowWindow(m_hWndMenuBar, SW_HIDE);
SetWindowPos(&wndTop, 0, 0, GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW|SWP_FRAMECHANGED);
it will appear the function did nothing? why?
"riki" wrote:
> marwarn wrote:
>
> by the looks of it:
> SHFullScreen()
>
>
> riki
>
> ----
> I sold my soul to the Devil but he auctioned it off on Ebay
> By Night:
> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
> http://homepages.inspire.net.nz/~gambit/AbstractStart/
> Latest Betas have WM5 layout and speed dial support
>
| |
| marwarn 2006-03-20, 7:01 pm |
| I have fix the my app, now it's ok.
"marwarn" wrote:
> I'm developing a smartphone app using eVC4. I
>
> need the app to be in full screen mode , I resized my app window
>
> but the title bar is on the top my app. In fact, the
>
> top part of my main window is hidden behind the title bar.
>
> am I missing something here?
>
> my code:
> if (m_bFullScreen)
> {
> GetWindowRect(&m_rcWindowSave);
> ::ShowWindow(m_hWndMenuBar, SW_HIDE);
> SetWindowPos(&wndTop, 0, 0, GetSystemMetrics(SM_CXSCREEN),
> GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW|SWP_FRAMECHANGED);
> }
> else
> {
> ::ShowWindow(m_hWndMenuBar, SW_SHOW);
> SetWindowPos(NULL, m_rcWindowSave.left, m_rcWindowSave.top,
> m_rcWindowSave.Width(), m_rcWindowSave.Height(), SWP_SHOWWINDOW);
> }
>
> Any help would be appreciated.
>
>
|
|
|
|
|