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.

37 lines
951 B

  1. // NP_CommonPage.cpp : Implementation of CNP_CommonPage
  2. #include "stdafx.h"
  3. #include "NPPropPage.h"
  4. #include "NP_CommonPage.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CNP_CommonPage
  7. UINT CNP_CommonPage::m_NotifyMessage = RegisterWindowMessage (_T ("CommonPageEventMessasge"));
  8. //==================================================================
  9. // Returns a handle to the tree window
  10. // If there is no window will return NULL
  11. //
  12. //==================================================================
  13. HWND
  14. CNP_CommonPage::GetSafeTreeHWND ()
  15. {
  16. HWND hwndTree = GetDlgItem (IDC_TREE_TUNING_SPACES);
  17. if (!::IsWindow (hwndTree))
  18. {
  19. ASSERT (FALSE);
  20. return NULL;
  21. }
  22. return hwndTree;
  23. }
  24. HWND
  25. CNP_CommonPage::GetSafeLastErrorHWND ()
  26. {
  27. HWND hwndTree = GetDlgItem (IDC_STATIC_HRESULT);
  28. if (!::IsWindow (hwndTree))
  29. {
  30. ASSERT (FALSE);
  31. return NULL;
  32. }
  33. return hwndTree;
  34. }