MickD
Member
Hi All, Im new to DirectX and have been studying the tuts in the sdk but have come across a small problem when resizing the form.
I noticed they handle Minimised in the OnResize override but when I size the window to nothing vertically it throws an exception. There is also code in place to handle pausing and reseting the device, these things I can understand but dont help.
Ive searched high and low for a good explanation but so far Ive come up short. Ive seen code that handles the sizing of panels to prevent them from being (0,0) say but how do you handle a forms client rect?
I probably will move it to a panel anyway but Id just like to work this one out first.
If you need to see some error reports or code, let me know but I dont think this is an isolated problem and hopefully Im just missing something simple.
Thanks in advance for any help,
Cheers,
Mick.
Whoops, my appologies for posting in the wrong forum, could a mod make the changes if needed, thanks.
I noticed they handle Minimised in the OnResize override but when I size the window to nothing vertically it throws an exception. There is also code in place to handle pausing and reseting the device, these things I can understand but dont help.
Ive searched high and low for a good explanation but so far Ive come up short. Ive seen code that handles the sizing of panels to prevent them from being (0,0) say but how do you handle a forms client rect?
I probably will move it to a panel anyway but Id just like to work this one out first.
If you need to see some error reports or code, let me know but I dont think this is an isolated problem and hopefully Im just missing something simple.
Thanks in advance for any help,
Cheers,
Mick.
Whoops, my appologies for posting in the wrong forum, could a mod make the changes if needed, thanks.