The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: georgek01 on January 18, 2006, 06:00:27 AM

Title: Drag & Drop in ListView with manifest file = unexpected result.
Post by: georgek01 on January 18, 2006, 06:00:27 AM
Hello all Assemblers!

I'm adding drag and drop to a list view and all works fine until I compile with a manifest file included. Now the image and text is all black while dragging.

I've compiled two test apps that I've included to demonstrate the problem - one with manifest and one without. I'm running Win XP SP 1 - so if you running 2000 and do not see the black box then it might just be XP.

Thank you for your assistance!!

Updated attachment for W2K - replaced ebx with ecx

Regards, George.

[attachment deleted by admin]
Title: Re: Drag & Drop in ListView with manifest file = unexpected result.
Post by: georgek01 on January 19, 2006, 10:06:54 AM
Antonis from the WinAsm Form (http://www.winasm.net/) provided the following solution...


DoImageList Proc
Invoke ImageList_LoadImage, hInstance, ICO1, 16, 1, 0FFFFFFH, IMAGE_BITMAP, LR_CREATEDIBSECTION
MOV hImageList, EAX
RET
DoImageList EndP