Source code of Windows XP (NT5)
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.

102 lines
3.2 KiB

  1. #define DBCMD_PROPERTIES (WM_USER+1024)
  2. #define DBCMD_DELETE (DBCMD_PROPERTIES+1)
  3. #define DBCMD_DISABLEUSER (DBCMD_PROPERTIES+2)
  4. #define DBCMD_DISABLEGLOBAL (DBCMD_PROPERTIES+3)
  5. #define DBCMD_VIEWSHIMS (DBCMD_PROPERTIES+4)
  6. #define DBCMD_VIEWAPPHELP (DBCMD_PROPERTIES+5)
  7. #define DBCMD_FIXWIZARD (DBCMD_PROPERTIES+6)
  8. #define DBCMD_VIEWGLOBAL (DBCMD_PROPERTIES+7)
  9. #define DBCMD_VIEWPATCH (DBCMD_PROPERTIES+8)
  10. #define DBCMD_VIEWLAYERS (DBCMD_PROPERTIES+9)
  11. #define DBCMD_VIEWDISABLED (DBCMD_PROPERTIES+10)
  12. typedef struct {
  13. UINT uType;
  14. union {
  15. PSHIMDESC pShim;
  16. PMATCHENTRY pMatch;
  17. PHELPENTRY pHelp;
  18. };
  19. UINT uID;
  20. UINT uContext;
  21. } DBTREETIP, *PDBTREETIP;
  22. #define MAX_TIPS 1024
  23. class CDBView: public CView {
  24. HWND m_hListView;
  25. UINT m_uListSize;
  26. UINT m_uListHeight;
  27. HWND m_hTreeView;
  28. HBRUSH m_hFillBrush;
  29. UINT m_uCapturePos;
  30. DBTREETIP m_TipList[MAX_TIPS];
  31. UINT m_uNextTip;
  32. HIMAGELIST m_hImageList;
  33. UINT m_uImageRedirector[1024];
  34. PDBRECORD m_pCurrentRecord;
  35. HTREEITEM m_hSelectedItem;
  36. PDBRECORD m_pListRecord;
  37. BOOL m_bHorzDrag;
  38. UINT m_uContext;
  39. BOOL m_bDrag;
  40. CListView m_GlobalList;
  41. CListView m_LocalList;
  42. public:
  43. CDBView();
  44. BOOL Initialize (void);
  45. void Update (BOOL fNewCreate = TRUE);
  46. BOOL Activate (BOOL fNewCreate = TRUE);
  47. // Utility functions
  48. void GenerateTreeToolTip (PDBTREETIP,LPTSTR);
  49. HTREEITEM AddTreeItem (HTREEITEM hParent,
  50. DWORD dwFlags,
  51. DWORD dwState = 0,
  52. LPCTSTR szText = TEXT(""),
  53. UINT uImage = 0,
  54. LPARAM lParam = 0);
  55. void RefreshTree(void);
  56. void DeleteDBWithTree (HTREEITEM hItem);
  57. MSGAPI msgClose (void);
  58. UINT LookupFileImage (LPCTSTR szFilename, UINT uDefault);
  59. void AddRecordToTree (PDBRECORD);
  60. void WriteFlagsToTree (HTREEITEM hParent, DWORD dwFlags);
  61. void SyncMenu (void);
  62. void SyncStates (UINT uMenuCMD,
  63. UINT uToolCmd,
  64. BOOL bToolbar,
  65. BOOL bToggle);
  66. // Messages being examined.
  67. MSGAPI msgPaint (HDC hDC);
  68. MSGAPI msgResize (UINT uWidth,
  69. UINT uHeight);
  70. MSGAPI msgChar (TCHAR chChar);
  71. MSGAPI msgNotify (LPNMHDR pHdr);
  72. MSGAPI msgCommand (UINT uID,
  73. HWND hSender);
  74. virtual LRESULT STDCALL MsgProc(UINT uMsg,
  75. WPARAM wParam,
  76. LPARAM lParam);
  77. };
  78. void FormatFileSize(UINT uSize, LPTSTR szText);
  79. void FormatVersion(LARGE_INTEGER liVer, LPTSTR szText);
  80. BOOL CALLBACK DisableDialog(HWND, UINT, WPARAM, LPARAM);