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.

43 lines
1.3 KiB

  1. // ThreadCtlPerfView.h : interface of the CThreadCtlPerfView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_THREADCTLPERFVIEW_H__58D2A5C1_4E6F_472E_9F16_1F648CFBADF6__INCLUDED_)
  5. #define AFX_THREADCTLPERFVIEW_H__58D2A5C1_4E6F_472E_9F16_1F648CFBADF6__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. extern void InitControls(HWND hwndPage);
  10. class CThreadCtlPerfView : public CDialogImpl<CThreadCtlPerfView>
  11. {
  12. public:
  13. enum { IDD = IDD_THREADCTLPERF_FORM };
  14. BOOL PreTranslateMessage(MSG* pMsg)
  15. {
  16. return IsDialogMessage(pMsg);
  17. }
  18. BEGIN_MSG_MAP(CThreadCtlPerfView)
  19. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  20. END_MSG_MAP()
  21. LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
  22. {
  23. bHandled = FALSE;
  24. InitControls(m_hWnd);
  25. ::PostThreadMessage(_Module.m_dwMainThreadID, WM_USER, 0, 0L);
  26. return 0;
  27. }
  28. };
  29. /////////////////////////////////////////////////////////////////////////////
  30. //{{AFX_INSERT_LOCATION}}
  31. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  32. #endif // !defined(AFX_THREADCTLPERFVIEW_H__58D2A5C1_4E6F_472E_9F16_1F648CFBADF6__INCLUDED_)