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

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!
> 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

:)

thanks george!

:)

haaa......!

It's done!

Window area's original point can set as negative!

thanks george's newsgroup!
Last edited on
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.
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.