ImagePictureStrip property fails on MDI forms

Summary

Id:2.2
Type:Bug Bug
Current Status:Open

Detail

20 Apr 2003OpenTuan Anh Nguyen

There is a bug in the ImageList control when I place it on the MDI form. Since the MDI form doesn't have the hDC property, and the line

        lParenthDC = UserControl.Parent.hdc

is wrong when I used the ImagePictureStrip property. I've fixed it using Windows' APIs:

        lParenthDC = GetDC(UserControl.Parent.hwnd)
        '... other code
        ReleaseDC UserControl.Parent.hwnd, lParenthDC.