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.

131 lines
4.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. ////
  23. // nbox.h - interface for notify box functions in nbox.c
  24. ////
  25. #ifndef __NBOX_H__
  26. #define __NBOX_H__
  27. #include "winlocal.h"
  28. #define NBOX_VERSION 0x00000106
  29. // handle to notify box
  30. //
  31. DECLARE_HANDLE32(HNBOX);
  32. #define NB_CANCEL 0x0001
  33. #define NB_TASKMODAL 0x0002
  34. #define NB_HOURGLASS 0x0004
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. // NBoxCreate - notify box constructor
  39. // <dwVersion> (i) must be NBOX_VERSION
  40. // <hInst> (i) instance handle of calling module
  41. // <hwndParent> (i) window which will own the notify box
  42. // NULL desktop window
  43. // <lpszText> (i) message to be displayed
  44. // <lpszTitle> (i) notify box caption
  45. // NULL no caption
  46. // <lpszButtonText> (i) pushbutton text, if NB_CANCEL specified
  47. // NULL use default text ("Cancel")
  48. // <dwFlags> (i) control flags
  49. // NB_CANCEL notify box includes Cancel pushbutton
  50. // NB_TASKMODAL disable parent task's top-level windows
  51. // NB_HOURGLASS show hourglass cursor while notify box visible
  52. // return notify box handle (NULL if error)
  53. //
  54. // NOTE: NBoxCreate creates the window but does not show it.
  55. // See NBoxShow and NBoxHide.
  56. // The size of the notify box is determined by the number of
  57. // lines in <lpszText>, and the length of the longest line.
  58. //
  59. HNBOX DLLEXPORT WINAPI NBoxCreate(DWORD dwVersion, HINSTANCE hInst,
  60. HWND hwndParent, LPCTSTR lpszText, LPCTSTR lpszTitle,
  61. LPCTSTR lpszButtonText, DWORD dwFlags);
  62. // NBoxDestroy - notify box destructor
  63. // <hNBox> (i) handle returned from NBoxCreate
  64. // return 0 if success
  65. //
  66. int DLLEXPORT WINAPI NBoxDestroy(HNBOX hNBox);
  67. // NBoxShow - show notify box
  68. // <hNBox> (i) handle returned from NBoxCreate
  69. // return 0 if success
  70. //
  71. int DLLEXPORT WINAPI NBoxShow(HNBOX hNBox);
  72. // NBoxHide - hide notify box
  73. // <hNBox> (i) handle returned from NBoxCreate
  74. // return 0 if success
  75. //
  76. int DLLEXPORT WINAPI NBoxHide(HNBOX hNBox);
  77. // NBoxIsVisible - get visible flag
  78. // <hNBox> (i) handle returned from NBoxCreate
  79. // return TRUE if notify box is visible, FALSE if hidden
  80. //
  81. int DLLEXPORT WINAPI NBoxIsVisible(HNBOX hNBox);
  82. // NBoxGetWindowHandle - get notify box window handle
  83. // <hNBox> (i) handle returned from NBoxCreate
  84. // return window handle (NULL if error)
  85. //
  86. HWND DLLEXPORT WINAPI NBoxGetWindowHandle(HNBOX hNBox);
  87. // NBoxSetText - set notify box message text
  88. // <hNBox> (i) handle returned from NBoxCreate
  89. // <lpszText> (i) message to be displayed
  90. // NULL do not modify text
  91. // <lpszTitle> (i) notify box caption
  92. // NULL do not modify caption
  93. // return 0 if success
  94. //
  95. // NOTE: The size of the notify box is not changed by this function,
  96. // even if <lpszText> is larger than when NBoxCreate() was called.
  97. //
  98. int DLLEXPORT WINAPI NBoxSetText(HNBOX hNBox, LPCTSTR lpszText, LPCTSTR lpszTitle);
  99. // NBoxIsCancelled - get cancel flag, set when Cancel button pushed
  100. // <hNBox> (i) handle returned from NBoxCreate
  101. // return TRUE if notify box Cancel button pushed
  102. //
  103. BOOL DLLEXPORT WINAPI NBoxIsCancelled(HNBOX hNBox);
  104. // NBoxSetCancelled - set cancel flag
  105. // <hNBox> (i) handle returned from NBoxCreate
  106. // <fCancelled> (i) new value for cancel flag
  107. // return 0 if success
  108. //
  109. int DLLEXPORT WINAPI NBoxSetCancelled(HNBOX hNBox, BOOL fCancelled);
  110. #ifdef __cplusplus
  111. }
  112. #endif
  113. #endif // __NBOX_H__