Home > Archive > Smartphone Developer Forum > October 2005 > SHFullScreen problem solved!
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 |
SHFullScreen problem solved!
|
|
| Scott Thibault 2005-08-05, 5:05 pm |
| Many people, like myself have had a lot of trouble with this API. In my
application, I couldn't get it to work until I tried calling CreateWindow
with the exact style WS_VISIBLE|WS_POPUP (contrary to the MS example).
Having done this, you get a default window size of 0 by 0, so you need to
use SystemParametersInfo to get the working window size in order to create a
window that is not in full-screen mode initially.
--Scott Thibault
| |
| Xiaoma 2005-10-18, 9:57 pm |
| Hi Scott,
I'm dealing with the full screen mode now.As you mentioned, I created
a window without menubar and set the style to WS_VISIBLE|WS_POPUP,then use
the SHFULLScreen API.But the result is not wot I want,I got a window with no
menubar,but the space of the menubar can't be controled.I don't know how to
use SystemParametersInfo and to do wot,may be it is the answer!
Would you please give me some advice or a little sample code?
Thanks a lot and looking to your reply!
"Scott Thibault" wrote:
> Many people, like myself have had a lot of trouble with this API. In my
> application, I couldn't get it to work until I tried calling CreateWindow
> with the exact style WS_VISIBLE|WS_POPUP (contrary to the MS example).
> Having done this, you get a default window size of 0 by 0, so you need to
> use SystemParametersInfo to get the working window size in order to create a
> window that is not in full-screen mode initially.
>
> --Scott Thibault
>
>
>
| |
| Xiaoma 2005-10-18, 9:57 pm |
| Hi Scott,
I'm dealing with the full screen mode now.As you mentioned, I created
a window without menubar and set the style to WS_VISIBLE|WS_POPUP,then use
the SHFULLScreen API.But the result is not wot I want,I got a window with no
menubar,but the space of the menubar can't be controled.I don't know how to
use SystemParametersInfo and to do wot,may be it is the answer!
Would you please give me some advice or a little sample code?
Thanks a lot and looking to your reply!
"Scott Thibault" wrote:
> Many people, like myself have had a lot of trouble with this API. In my
> application, I couldn't get it to work until I tried calling CreateWindow
> with the exact style WS_VISIBLE|WS_POPUP (contrary to the MS example).
> Having done this, you get a default window size of 0 by 0, so you need to
> use SystemParametersInfo to get the working window size in order to create a
> window that is not in full-screen mode initially.
>
> --Scott Thibault
>
>
>
|
|
|
|
|