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.
|
|
//
// CWnd.h
//
#pragma once
class CWnd { public: CWnd();
void Release(); BOOL Attach(HWND hwnd);
static CWnd* FromHandle(HWND hwnd);
public: HWND m_hWnd;
protected: // This is what subclasses implement
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam) PURE;
// Subclasses call CWnd::Default to forward the message to the original wndproc
LRESULT Default(UINT message, WPARAM wParam, LPARAM lParam);
virtual ~CWnd();
private: static LRESULT CALLBACK StaticWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); void OnNCDESTROY();
private: WNDPROC m_pfnPrevWindowProc; UINT m_cRef; };
|