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