October 31, 2003 Drag List Box problems | ||||
---|---|---|---|---|
| ||||
I' ve got a listbox on a dialogbox. I want to make a drag list box. As it described in Win32 Programmer's Reference I used MakeDragList(hlistbox); then uDragListMsg=RegisterWindowMessage(DRAGLISTMSGSTRING); So when processing uDragListMsg I see that no DL_DRAGGING notification comes. DL_BEGINDRAG, DL_CANCELDRAG, DL_DROPPED work good. Same trouble occurs when I compile any other compiler. /*============================================================================*/ int Process_WM_MYDRAGLISTBOXMSG(HWND hwnd, WPARAM wParam, LPARAM lParam) { switch ( (*(DRAGLISTINFO *)lParam).uNotification ) { case DL_BEGINDRAG: break; case DL_CANCELDRAG: break; case DL_DRAGGING: DrawInsert(hwnd, GetDlgItem(hwnd, wParam), DL_MOVECURSOR); return DL_MOVECURSOR; case DL_DROPPED: break; default: return FALSE; } return TRUE; } /*============================================================================*/ |
Copyright © 1999-2021 by the D Language Foundation