1
0

dragitem.h 476 B

1234567891011121314151617181920212223
  1. #ifndef _DRAGITEM_H
  2. #define _DRAGITEM_H
  3. #include <bfc/dispatch.h>
  4. // has 1 or more pointers to a named data type
  5. class NOVTABLE DragItem : public Dispatchable
  6. {
  7. public:
  8. const wchar_t *getDatatype() { return _call(GETDATATYPE, L""); }
  9. int getNumData() { return _call(GETNUMDATA, 0); }
  10. void *getDatum(int pos = 0) { return _call(GETDATUM, (void*)NULL, pos); }
  11. protected:
  12. DISPATCH_CODES
  13. {
  14. GETDATATYPE = 100,
  15. GETNUMDATA = 200,
  16. GETDATUM = 300
  17. };
  18. };
  19. #endif