Public Member Functions

IDADWindow Class Reference

Search for all occurrences

Detailed Description

See also:
Class ICustomControl, Class DADMgr, Custom Controls.

Description:
This is a new type of custom control used to provide drag and drop to and from things other than Custom Buttons. An example of an item that uses this control is a sample sphere window in the Material Editor.

To initialize the pointer to the control call:

#include <custcont.h>

Inheritance diagram for IDADWindow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  SetDADMgr (DADMgr *dadMgr)=0
virtual DADMgr GetDADMgr ()=0
virtual void  SetWindowProc (WindowProc *proc)=0

Member Function Documentation

virtual void SetDADMgr ( DADMgr dadMgr ) [pure virtual]
Remarks:
Set the drag and drop manager for this control.
Parameters:
DADMgr *dadMgr

A pointer to the drag and drop manager for this control.
virtual DADMgr* GetDADMgr ( ) [pure virtual]
Remarks:
Returns a pointer to the drag and drop manager for this control.
virtual void SetWindowProc ( WindowProc *  proc ) [pure virtual]
Remarks:
This method establishes a window proc that is called to handle all the normal processing after the drag and drop processing is done.
Parameters:
WindowProc *proc

The window proc. Note the following typedef:

typedef LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

#define SLIDERWINDOWCLASS _M("SliderControl")

// LOWORD(wParam) = ctrlID,

// HIWORD(wParam) = TRUE if user is dragging the slider interactively.

// lParam = pointer to ISliderControl

#define CC_SLIDER_CHANGE WM_USER + 611

// LOWORD(wParam) = ctrlID,

// lParam = pointer to ISliderControl

#define CC_SLIDER_BUTTONDOWN WM_USER + 612

// LOWORD(wParam) = ctrlID,

// HIWORD(wParam) = FALSE if user cancelled - TRUE otherwise

// lParam = pointer to ISliderControl

#define CC_SLIDER_BUTTONUP WM_USER + 613

IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow
IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow IDADWindow