Saturday, May 9, 2009

Visual C++ developers... Please helppppppppppp?

How to control or change the entire size of a window in MFC? I really want to make sure that when user clicks fullscreen button, the entire screen is covered and there are no white borders on any sides of the window. White borders makes my application dirty. Please help...

Visual C++ developers... Please helppppppppppp?
So TRUE Full-Screen you are trying to achieve....wow, there is something i never attempted with C++ before (how odd, you'd think after the stuff i've done). You could resize the window where when you get the WM_WINDOWPOSCHANGING (or whatever it was called..sorry i am not infront of my dev machine now) then you modify the window's x,y start position and the width and height to expand outside the visible region i.e., use -50,-50 for x,y -- if you want to be precise then you'd have to request from windows what the size of the form's non-client regions are and from there use that to subtract from the x,y which will put it off-screen precisely, and you'd expand the width, height by the additional amount + extra that represents its non-client region border....Come to think of it now, i guess i have done this before, just indirectly....





But if you're really ambitions you could get the Desktop window's HWND and from their draw directly to the screen after your window has gone full-screen..this way you can write anwhere on the screen...of course, this is more work than necessary so...

bouquet

No comments:

Post a Comment