2
Answers

DirectDraw and MDI

Photo of aryego

aryego

20y
2k
1
is there any way to draw in a MDI child form. As soon as i make a MDI window the directdraw functions throws a Graphicsexception in drawinternal(...) Does anyone know a work-around/solution for this?

Answers (2)

0
Photo of aryego
NA 4 0 20y
The exception occurs in drawinternal, this is not a method of directdraw, but an internal directdraw method. I just don't see a way to show the graphics on the MDI child. Catching the exception just does not fix the problem: We can not adress the drawinternal function directly. By the way: when use a normal form the application runs fine.. the problem really lies in the combination MDI with directdraw..
0
Photo of Mykonine
NA 520 0 20y
You will have to handle the exception. There's no workaround for lost surfaces or loss of the drawing device that occurs when another window activates.