|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - 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;
}
/*============================================================================*/
Oct 31 2003
|