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>
List of all
members.
Member Function Documentation
virtual void SetDADMgr |
( |
DADMgr * |
dadMgr |
) |
[pure virtual] |
- Parameters:
- DADMgr
*dadMgr
A pointer to the drag and drop manager for this control.
virtual DADMgr* GetDADMgr |
( |
|
) |
[pure virtual] |
virtual void SetWindowProc |
( |
WindowProc * |
proc |
) |
[pure virtual] |
- 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