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.

74 lines
2.6 KiB

  1. /*------------------------------------------------------------------**
  2. ** Copyright (c) 1998 Microsoft Corporation **
  3. ** All Rights reserved **
  4. ** **
  5. ** psheet.c **
  6. ** **
  7. ** Function for defining and creating the property sheets - TSREG **
  8. ** 07-01-98 a-clindh Created **
  9. **------------------------------------------------------------------*/
  10. #include <windows.h>
  11. #include <commctrl.h>
  12. #include <TCHAR.H>
  13. #include "tsreg.h"
  14. #include "resource.h"
  15. ///////////////////////////////////////////////////////////////////////////////
  16. INT_PTR CreatePropertySheet(HWND hwndOwner)
  17. {
  18. PROPSHEETPAGE psp[PAGECOUNT];
  19. PROPSHEETHEADER psh;
  20. TCHAR lpszBuf[MAXKEYSIZE] = TEXT("");
  21. psp[0].dwSize = sizeof(PROPSHEETPAGE);
  22. psp[0].dwFlags = PSP_PREMATURE | PSP_HASHELP;
  23. psp[0].hInstance = g_hInst;
  24. psp[0].pszTemplate = MAKEINTRESOURCE(IDD_SHADOW);
  25. psp[0].pszIcon = NULL;
  26. psp[0].pfnDlgProc = ShadowBitmap;
  27. psp[0].lParam = 0;
  28. psp[1].dwSize = sizeof(PROPSHEETPAGE);
  29. psp[1].dwFlags = PSP_PREMATURE | PSP_HASHELP;
  30. psp[1].hInstance = g_hInst;
  31. psp[1].pszTemplate = MAKEINTRESOURCE(IDD_GLYPH_CACHE_DLG);
  32. psp[1].pszIcon = NULL;
  33. psp[1].pfnDlgProc = GlyphCache;
  34. psp[1].lParam = 0;
  35. psp[2].dwSize = sizeof(PROPSHEETPAGE);
  36. psp[2].dwFlags = PSP_PREMATURE | PSP_HASHELP;
  37. psp[2].hInstance = g_hInst;
  38. psp[2].pszTemplate = MAKEINTRESOURCE(IDD_MISC);
  39. psp[2].pszIcon = NULL;
  40. psp[2].pfnDlgProc = Miscellaneous;
  41. psp[2].lParam = 0;
  42. psp[3].dwSize = sizeof(PROPSHEETPAGE);
  43. psp[3].dwFlags = PSP_PREMATURE | PSP_HASHELP;
  44. psp[3].hInstance = g_hInst;
  45. psp[3].pszTemplate = MAKEINTRESOURCE(IDD_PROFILES);
  46. psp[3].pszIcon = NULL;
  47. psp[3].pfnDlgProc = ProfilePage;
  48. psp[3].lParam = 0;
  49. psh.dwSize = sizeof(PROPSHEETHEADER);
  50. psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW;
  51. psh.hwndParent = hwndOwner;
  52. psh.hInstance = g_hInst;
  53. psh.pszIcon = MAKEINTRESOURCE(IDI_ICON1);
  54. LoadString (g_hInst, IDS_WINDOW_TITLE, lpszBuf, sizeof (lpszBuf));
  55. _tcscat(lpszBuf, TEXT("Default"));
  56. psh.pszCaption = lpszBuf;
  57. psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
  58. psh.ppsp = (LPCPROPSHEETPAGE) &psp;
  59. return PropertySheet(&psh);
  60. }
  61. // end of file
  62. ///////////////////////////////////////////////////////////////////////////////