How to extend the Client Area to Fullscreen?(win32 api)

Mar 27, 2009 at 5:44am
I wrote a game with win32 api,and I want to run it in fullscreen.

I had tried as this way: setting the window area to fullscreen, then using GetWindowDC() to draw the whole window.But the input of mouse is just in the client area,no the whole window area. So I want to get help:

How to extend the client area to fullscreen? just win32 api,not MFC.

And which kind style should I set for fullscreen?WS_BORDER,OVERLAPPED,OVERLAPPEDWINDOW or others?

thanks!
Mar 27, 2009 at 8:08am
> I wrote a game with win32 api,and I want to run it in fullscreen.

It's a Win16-Win32 FAQ since 1992 ...
You can ask on Specialized Win32 api newsgroup :
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32
for various methods (C/Win32)
Last edited on Mar 27, 2009 at 8:08am
Mar 27, 2009 at 9:37am

:)

thanks george!

Mar 28, 2009 at 1:51am
:)

haaa......!

It's done!

Window area's original point can set as negative!

thanks george's newsgroup!
Last edited on Mar 28, 2009 at 1:52am
Mar 28, 2009 at 1:18pm
please put some cross post to that newsgroup or explain the way
you slove this. Someone will dig this thread in the future will get lost.

Thanks.
Apr 7, 2009 at 6:55am
I donot know with coding but for C++ console applications, you can goto properties and change it from there.
It might work in ths case as well.
Topic archived. No new replies allowed.