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.

37 lines
1.1 KiB

  1. //////////////////////////////////////////////////////////////////
  2. // File : ptt.h
  3. // Purpose : Own Tooltop for disabled window
  4. //
  5. //
  6. // Copyright(c) 1991-1997, Microsoft Corp. All rights reserved
  7. //
  8. //////////////////////////////////////////////////////////////////
  9. #ifndef _PAD_TOOL_TIP_H_
  10. #define _PAD_TOOL_TIP_H_
  11. #ifndef WIN32_LEAN_AND_MEAN
  12. #define WIN32_LEAN_AND_MEAN
  13. #endif
  14. #include <windows.h>
  15. #include <commctrl.h>
  16. extern HWND WINAPI ToolTip_CreateWindow(HINSTANCE hInst, DWORD dwStyle, HWND hwndOwner);
  17. extern INT WINAPI ToolTip_Enable(HWND hwndToolTip, BOOL fEnable);
  18. #ifdef UNDER_CE // In Windows CE, all window classes are process global.
  19. extern BOOL ToolTip_UnregisterClass(HINSTANCE hInst);
  20. #endif // UNDER_CE
  21. #define TTM_RELAYEVENT_WITHUSERINFO (WM_USER+101)
  22. #define TTN_NEEDTEXT_WITHUSERINFO (TTN_FIRST - 20)
  23. typedef struct tagTOOLTIPUSERINFO {
  24. HWND hwnd;
  25. POINT pt;
  26. RECT rect;
  27. LPARAM lParam;
  28. }TOOLTIPUSERINFO, *LPTOOLTIPUSERINFO;
  29. typedef struct tagTOOLTIPTEXTUSERINFO
  30. {
  31. NMHDR hdr;
  32. TOOLTIPUSERINFO userInfo;
  33. LPWSTR lpszText;
  34. }TOOLTIPTEXTUSERINFO, *LPTOOLTIPTEXTUSERINFO;
  35. #endif // _DW_TOOL_TIP_H_