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.

39 lines
904 B

  1. /////////////////////////////////////////////////////////////////////////////
  2. // CMainWin
  3. class CMainWindow :
  4. public CWindowImpl<CMainWindow>
  5. {
  6. public:
  7. DECLARE_WND_CLASS(TEXT("StiMonHiddenWindow"))
  8. CMainWindow()
  9. {
  10. }
  11. ~CMainWindow()
  12. {
  13. }
  14. BOOL Create()
  15. {
  16. RECT rcPos;
  17. ZeroMemory(&rcPos, sizeof(RECT));
  18. HWND hWnd = CWindowImpl<CMainWindow>::Create( NULL, //HWND hWndParent,
  19. rcPos, //RECT& rcPos,
  20. NULL, //LPCTSTR szWindowName = NULL,
  21. WS_POPUP, //DWORD dwStyle = WS_CHILD | WS_VISIBLE,
  22. 0x0, //DWORD dwExStyle = 0,
  23. 0 //UINT nID = 0
  24. );
  25. return hWnd != NULL;
  26. }
  27. BEGIN_MSG_MAP(CMainWindow)
  28. END_MSG_MAP()
  29. };