Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MFC Resize event and Splash screen

Status
Not open for further replies.

evosix

Programmer
Apr 27, 2003
9
AU
Hi all,
Im making a simple 2D game with MFC and whenever i resize the window or if i minimise, put a window over it like the splash screen (basically anything that overlaps/changes the window) it crashes. I know i have to use a resize event or something to catch it and do something to prevent the crash.
What i want to know is what do i do in the resize event??
Do i just redraw everything or what??

And one last thing, how do i automatically stretch/shrink my background image to the size of the client window (ndh, ndv)?? At the moment ive made a 1600x1200 background.. but as you know it will only show ndv x ndh of that image.

Thankyou all for your help,
-evosix-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top