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.

46 lines
1.4 KiB

  1. //
  2. // framewnd.h: Implemenation of a window frame class
  3. // Copyright Microsoft Corporation 1999-2000
  4. //
  5. // This is a super lite wrapper. It doesn't go and wrap
  6. // every win32 window API under the sun like MFC or ATL.
  7. //
  8. #ifndef _FRAMEWND_H_
  9. #define _FRAMEWND_H_
  10. class CTscFrameWnd
  11. {
  12. public:
  13. CTscFrameWnd();
  14. virtual ~CTscFrameWnd();
  15. //
  16. // API Methods
  17. //
  18. HWND CreateWnd(HINSTANCE hInstance,HWND hwndParent,
  19. LPTSTR szClassName, LPTSTR szTitle,
  20. DWORD dwStyle, LPRECT lpInitialRect,
  21. HICON hIcon);
  22. HWND GetHwnd() {return _hWnd;}
  23. HINSTANCE GetInstance() {return _hInstance;}
  24. virtual LRESULT CALLBACK WndProc(HWND hwnd,
  25. UINT uMsg,
  26. WPARAM wParam,
  27. LPARAM lParam) = 0;
  28. BOOL DestroyWindow() {return ::DestroyWindow(_hWnd);}
  29. private:
  30. //Private methods
  31. static LRESULT CALLBACK StaticTscFrameWndProc(HWND hwnd,
  32. UINT uMsg,
  33. WPARAM wParam,
  34. LPARAM lParam);
  35. protected:
  36. //Protected members
  37. HWND _hWnd;
  38. private:
  39. //Private members
  40. HINSTANCE _hInstance;
  41. };
  42. #endif // _CONTWND_H_