Hi everyone

I'm having a bit of difficulty with my custom class that I have created in MUI.
I get the MADF_DRAWUPDATE notification from MUI to render my class, and the actual rendering is working fine. But whenever I add the Mui_AddClipping() and Mui_RemoveClipping() before and after drawing to restrict the drawing to the class area, it causes a crash.
I haven't managed to find much documentation on these MUI commands. I do see in the Amiga autodocs that it is illegal to clip a window between a BeginRefresh()/EndRefresh() pair and wondered if this is what is happening?
Any information on this would be greatly appreciated!
Thanks,
Chris