News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Drag List/Check List

Started by Jackal, August 10, 2006, 09:26:32 PM

Previous topic - Next topic

dedndave

as i said, i think you could use CreateWindow or CreateWindowEx
you just want a window with no border or titlebar   :P
you might also have a look at CreateDialogParam

some related code....
http://www.masm32.com/board/index.php?topic=5744.0

bomz

Is it possible subclassing tooltip?

What properties must windows have to put in it picture BMP?

bomz

The problem is not 'how create window' I don't know what classes need for bitmap

dedndave

nothing special
any normal window can display a bitmap
you probably want WS_VISIBLE   :bg

bomz

is it possible to subclass tooltip for my purpose?

dedndave

i am not sure
i guess you can draw a bitmap in there, although it seems a little clumsy   :P
i am sure there is an easy way to do it

someone that knows will pop in here, soon   :U

qWord

try this: create a layered Window with the WS_POPUP and WS_VISIBLE style. Size the client area, so that it fits the screen. Then you can capture the mouseinput and draw your stuff at current postion.
FPU in a trice: SmplMath
It's that simple!

bomz

#22

This look very simple I think because Drag list used
http://www.codeguru.com/cpp/controls/listview/dragdrop/article.php/c6399/A-Drag-and-Drop-List-Control.htm

Tutorial 18: Common Controls
QuoteDrag list control are souped-up listbox so it doesn't have its own class.
http://win32assembly.online.fr/tut18.html

After selected Item changed destroyed picture with selected Item's
http://xmages.net/storage/10/1/0/e/7/upload/388d18da.gif
http://xmages.net/storage/10/1/0/e/7/upload/62611780.gif
http://xmages.net/storage/10/1/0/e/7/upload/f481a9aa.gif



dedndave

very nice !!!   :U

what function did you use to create the drag window ?

bomz

any
Quoteinvoke CreateWindowEx, NULL, addr ListViewClassName, NULL,\
         WS_CHILD or WS_VISIBLE or LVS_REPORT or LVS_SHAREIMAGELISTS or LVS_SHOWSELALWAYS,\
         0,0,0,0, hWnd, NULL, hInstance, NULL
      mov hList, eax
      mov eax, LVS_EX_FULLROWSELECT or LVS_EX_HEADERDRAGDROP or\
      LVS_EX_SUBITEMIMAGES or LVS_EX_GRIDLINES
      INVOKE SendMessage, hList, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, eax

bomz

Tutorial 18: Common Controls
QuoteDrag list control are souped-up listbox so it doesn't have its own class.

LVS_EX_HEADERDRAGDROP - this is drag list!!!

bomz

http://www.codeguru.com/cpp/controls/listview/dragdrop/article.php/c6399/A-Drag-and-Drop-List-Control.htm
In this very good example error occurs - if you drag selected item and quickly and immediately move mouse down or up this destroy capture. In my code I make mouse-recapture and this artifact not occurs

bomz

any window not need

LVM_CREATEDRAGIMAGE
ImageList_BeginDrag
.......................