68 switch (
info->uNotification) {
#define PRECONDITION(condition)
TResult DragNotify(TParam1, TParam2)
Forward the drag notification messages from the parent window to the drag listbox for it to handle.
TDragList is a draggable list box.
void DrawInsert(int item)
Draws the drag cursor.
virtual void Dropped(int item, const TPoint &point)
User has dropped the item.
TDragList(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=0)
Constructor for creating a drag list dynamically.
virtual TCursorType Dragging(int item, const TPoint &point)
User has moved the mouse.
TCursorType
Enumeration used to specify the type of cursor to be displayed during a drag operation.
@ dlStop
stop cursor - item cannot be dropped now
virtual void CancelDrag(int item, const TPoint &point)
User has cancelled the drag.
int ItemFromPoint(const TPoint &p, bool scroll=true)
Retrieve the item from the specified point.
virtual bool BeginDrag(int item, const TPoint &point)
The drag UI has started. Return true to allow drag.
void SetupWindow() override
SetupWindow for the drag listbox must call MakeDragList().
TEventHandler is a base class from which you can derive classes that handle messages.
An interface object that represents a corresponding list box element.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TWindow * GetParent() const
Retrieves the OWL object of the parent window. If none exists, returns 0.
virtual void SetupWindow()
Performs setup following creation of an associated MS-Windows window.
HWND GetHandle() const
Returns the handle of the window.
Definition of class TDragList, a listbox that has dragging capabilities for items.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
#define EV_REGISTERED(str, method)
Resonse table entry for a registered message.