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.

52 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: dlgbase.cxx
  7. //
  8. // Contents: CDialog base class
  9. //
  10. // History: 19-Oct-94 BruceFo Created.
  11. //
  12. //--------------------------------------------------------------------------
  13. #include "headers.hxx"
  14. #pragma hdrstop
  15. #include "dlgbase.hxx"
  16. //+-------------------------------------------------------------------------
  17. //
  18. // Method: CDialog::_WinDlgProc, static private
  19. //
  20. // Synopsis: Windows Dialog Procedure
  21. //
  22. //--------------------------------------------------------------------------
  23. INT_PTR CALLBACK
  24. CDialog::_WinDlgProc(
  25. IN HWND hwnd,
  26. IN UINT msg,
  27. IN WPARAM wParam,
  28. IN LPARAM lParam
  29. )
  30. {
  31. CDialog *pPropPage = NULL;
  32. if (msg==WM_INITDIALOG)
  33. {
  34. SetWindowLongPtr(hwnd,GWLP_USERDATA,lParam);
  35. }
  36. pPropPage = (CDialog*) GetWindowLongPtr(hwnd,GWLP_USERDATA);
  37. if (pPropPage != NULL)
  38. {
  39. return pPropPage->DlgProc(hwnd,msg,wParam,lParam);
  40. }
  41. else
  42. {
  43. return FALSE;
  44. }
  45. }