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.

88 lines
2.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. WNProp.hxx
  7. This file contains the global definitions needed for the Properties
  8. dialog stuff in the winnet driver
  9. FILE HISTORY:
  10. Johnl 2-Sept-1991 Created
  11. */
  12. #ifndef _WNPROP_HXX_
  13. #define _WNPROP_HXX_
  14. /* These APIs should be called before and after the properties dialog is displayed for
  15. * for the first time and during the DLL exit stuff.
  16. */
  17. APIERR I_PropDialogInit( void ) ;
  18. void I_PropDialogUnInit( void ) ;
  19. #define MAX_BUTTONS 1 // Maximum number of buttons the properties dialog
  20. // can display
  21. /* The magic numbers for the corresponding buttons. The number should
  22. * match the index into the aidsButtonNames array.
  23. */
  24. #define PROP_ID_FILEOPENS 0
  25. #define PROP_ID_LASTBUTTON PROP_ID_FILEOPENS
  26. /*************************************************************************
  27. NAME: PROPERTY_DIALOG
  28. SYNOPSIS: Simple wrapper around the windows properties dialog
  29. INTERFACE:
  30. QueryButtonName
  31. Returns the string name of the button based on the index
  32. and the type of selection.
  33. QueryString
  34. Indexes into the string array and returns the
  35. button name (the PROP_ID_* manifests should be used in
  36. this function).
  37. PARENT: BASE
  38. USES: NLS_STR
  39. CAVEATS: The class needs to be constructed before QueryButtonName
  40. or QueryString is called.
  41. NOTES:
  42. HISTORY:
  43. Johnl 02-Sep-1991 Lifted from Rustan's original
  44. **************************************************************************/
  45. class PROPERTY_DIALOG : public BASE
  46. {
  47. private:
  48. static RESOURCE_STR *pnlsButtonName[6] ;
  49. public:
  50. static APIERR Construct( void ) ;
  51. static void Destruct( void ) ;
  52. static APIERR QueryButtonName( UINT iButton,
  53. UINT nPropSel,
  54. const NLS_STR * * ppnlsName ) ;
  55. static NLS_STR * QueryString( unsigned iStringIndex )
  56. { UIASSERT( iStringIndex <= PROP_ID_LASTBUTTON ) ; return pnlsButtonName[iStringIndex] ; }
  57. } ;
  58. #endif // _WNPROP_HXX_