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.

52 lines
1.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. fontedit.hxx
  7. This is a wrapper for the Win32 Font Picker Common Dialog.
  8. FILE HISTORY:
  9. JonN 22-Sep-1993 Created
  10. */
  11. #ifndef _FONTPICK_HXX_
  12. #define _FONTPICK_HXX_
  13. #include <commdlg.h> // CHOOSEFONT and LOGFONT
  14. class FONT;
  15. /*************************************************************************
  16. NAME: WIN32_FONT_PICKER
  17. SYNOPSIS: Wrapper class for Win32's ChooseFont API.
  18. INTERFACE: Process() - Brings up the dialog,
  19. USES: FONT
  20. HISTORY:
  21. jonn 22-Sep-1993 Created
  22. **************************************************************************/
  23. DLL_CLASS WIN32_FONT_PICKER
  24. {
  25. public:
  26. static APIERR Process( OWNER_WINDOW * powin,
  27. BOOL * pfCancelled,
  28. FONT * pfont = NULL,
  29. LOGFONT * plf = NULL,
  30. CHOOSEFONT * pcf = NULL );
  31. static VOID InitCHOOSEFONT ( CHOOSEFONT * pcf,
  32. LOGFONT * plf,
  33. HWND hwndOwner );
  34. };
  35. #endif // _FONTPICK_HXX_