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.
|