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.

88 lines
1.6 KiB

  1. //============================================================================
  2. // Copyright (c) 1996, Microsoft Corporation
  3. //
  4. // File: bubble.h
  5. //
  6. // History:
  7. // Abolade-Gbadegesin Mar-1-1996 Created.
  8. //
  9. // This file contains popup declarations for the bubble-popup controls.
  10. //============================================================================
  11. typedef struct _BPOPUP {
  12. HWND hwnd;
  13. UINT iCtrlId;
  14. PTSTR pszText;
  15. HFONT hfont;
  16. DWORD dwFlags;
  17. ULONG_PTR ulpTimer;
  18. UINT uiTimeout;
  19. } BPOPUP, *PBPOPUP;
  20. #define BPFLAG_Activated 0x0001
  21. #define BPFLAG_FontCreated 0x0002
  22. #define BP_TimerId 0xa09
  23. #define BP_GetPtr(hwnd) (BPOPUP *)GetWindowLongPtr((hwnd), 0)
  24. #define BP_SetPtr(hwnd,ptr) (BPOPUP *)SetWindowLongPtr((hwnd), 0, (ULONG_PTR)ptr)
  25. LRESULT
  26. CALLBACK
  27. BP_WndProc(
  28. IN HWND hwnd,
  29. IN UINT uiMsg,
  30. IN WPARAM wParam,
  31. IN LPARAM lParam
  32. );
  33. BOOL
  34. BP_OnCreate(
  35. IN BPOPUP * pbp,
  36. IN CREATESTRUCT * pcs
  37. );
  38. VOID
  39. BP_OnDestroy(
  40. IN BPOPUP *pbp
  41. );
  42. VOID
  43. BP_OnGetRect(
  44. IN BPOPUP * pbp,
  45. IN RECT * prc
  46. );
  47. VOID
  48. BP_ResizeClient(
  49. IN BPOPUP * pbp
  50. );
  51. BOOL
  52. BP_OnSetFont(
  53. IN BPOPUP * pbp,
  54. IN HFONT hfont,
  55. IN BOOL bRedraw
  56. );
  57. DWORD
  58. BP_OnPaint(
  59. IN BPOPUP * pbp
  60. );
  61. BOOL
  62. BP_OnActivate(
  63. IN BPOPUP * pbp
  64. );
  65. BOOL
  66. BP_OnDeactivate(
  67. IN BPOPUP * pbp
  68. );