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.

95 lines
3.1 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. // dlg.h - interface for dialog box functions in dlg.c
  24. ////
  25. #ifndef __DLG_H__
  26. #define __DLG_H__
  27. #include "winlocal.h"
  28. #define DLG_VERSION 0x00000100
  29. // handle to dlg engine
  30. //
  31. DECLARE_HANDLE32(HDLG);
  32. // dwFlags param in DlgInitDialog
  33. //
  34. #define DLG_NOCENTER 0x00000001
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. // DlgInit - initialize dlg engine
  39. // <dwVersion> (i) must be DLG_VERSION
  40. // <hInst> (i) instance handle of calling module
  41. // return handle (NULL if error)
  42. //
  43. HDLG DLLEXPORT WINAPI DlgInit(DWORD dwVersion, HINSTANCE hInst);
  44. // DlgTerm - shut down dlg engine
  45. // <hDlg> (i) handle returned from DlgInit
  46. // return 0 if success
  47. //
  48. int DLLEXPORT WINAPI DlgTerm(HDLG hDlg);
  49. // DlgInitDialog - perform standard dialog box initialization
  50. // <hDlg> (i) handle returned from DlgInit
  51. // <hwndDlg> (i) dialog box to be initialized
  52. // <hwndCenter> (i) center dialog box upon this window
  53. // NULL center dialog box on its parent
  54. // <dwFlags> (i) control flags
  55. // DLG_NOCENTER do not center dialog box at all
  56. // return 0 if success
  57. //
  58. int DLLEXPORT WINAPI DlgInitDialog(HDLG hDlg, HWND hwndDlg, HWND hwndCenter, DWORD dwFlags);
  59. // DlgEndDialog - perform standard dialog box shutdown
  60. // <hDlg> (i) handle returned from DlgInit
  61. // <hwndDlg> (i) dialog box to be shutdown
  62. // <nResult> (i) dialog box result code
  63. // return 0 if success
  64. //
  65. int DLLEXPORT WINAPI DlgEndDialog(HDLG hDlg, HWND hwndDlg, int nResult);
  66. // DlgGetCurrentDialog - get handle of current dialog box
  67. // <hDlg> (i) handle returned from DlgInit
  68. // return window handle (NULL if no dialog box up)
  69. //
  70. HWND DLLEXPORT WINAPI DlgGetCurrentDialog(HDLG hDlg);
  71. // DlgOnCtlColor - handle WM_CTLCOLOR message sent to dialog
  72. // <hwndDlg> (i) dialog box handle
  73. // <hdc> (i) display context for child window
  74. // <hwndChild> (i) control window handle
  75. // <nCtlType> (i) control type (CTLCOLOR_BTN, CTLCOLOR_EDIT, etc)
  76. HBRUSH DLLEXPORT WINAPI DlgOnCtlColor(HWND hwndDlg, HDC hdc, HWND hwndChild, int nCtlType);
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif // __DLG_H__