Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. // DUIListView
  2. // Class definition
  3. class DUIListView : public HWNDHost
  4. {
  5. public:
  6. static HRESULT Create(OUT Element** ppElement) { return Create(AE_MouseAndKeyboard, NULL, ppElement); }
  7. static HRESULT Create(UINT nActive, OUT Element** ppElement) { return Create(nActive, NULL, ppElement); }
  8. static HRESULT Create(UINT nActive, HWND hwndListView, OUT Element** ppElement);
  9. // System events
  10. virtual void OnInput(InputEvent* pie);
  11. virtual UINT MessageCallback(GMSG* pGMsg);
  12. // ClassInfo accessors (static and virtual instance-based)
  13. static IClassInfo* Class;
  14. virtual IClassInfo* GetClassInfo() { return Class; }
  15. static HRESULT Register();
  16. void DetachListview();
  17. DUIListView() { }
  18. ~DUIListView();
  19. HRESULT Initialize(UINT nActive, HWND hwndListView) { m_hwndListview = hwndListView; return HWNDHost::Initialize(HHC_CacheFont | HHC_NoMouseForward, nActive); }
  20. virtual HWND CreateHWND(HWND hwndParent);
  21. private:
  22. HWND m_hwndParent;
  23. HWND m_hwndLVOrgParent;
  24. HWND m_hwndListview;
  25. BOOL m_bClientEdge;
  26. };