I can't tell for sure without seeing all the code, but you probably still need to realize the window first before calling Get_Window. You can do that easiest by calling Show_All on your dialog which contains the drawing area, like Show_All(My_Paint_Dialog); Then call your Draw procedure. Manuel