windows-nt/Source/XPSP1/NT/shell/ext/hnw/wizard/cwnd.h

38 lines
691 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//
// 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;
};