CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ImageList_Write

  1. #1
    Join Date
    Jul 1999
    Posts
    145

    ImageList_Write

    I'm writing my own ImageList control using the COMCTRL32 library and I ran into the ImageList_Write function on the MSDN CD. Is there any way to implement this function in VB?? The only argument is a pointer to a stream(object?) in C++. Can I fake the stream with a Byte array? As is I have the GetDIBits function reading out the ImageList images into a Byte Array, which took me a few days to figure out, but if I can get the same effect with the ImageList_Write function I'd rather do that and stick with the native functions. Maybe I should mention my purpose is to retain the ImageList images so they don't get wiped out between design/run/dead time. The GetDIBIts function works OK but it takes a lot of processing...


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: ImageList_Write

    I wouldn't bother trying to write your own imagelist - http://vbaccelerator.com have an imagelist written completely in VB that supports all the interfaces of the one in the common controls dll - you get all the source code too.



    Chris Eastwood

    CodeGuru - the website for developers
    http://www.codeguru.com/vb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured