获取父窗口类

	static CZWnd* GetWndFromHandle( HWND hWnd )
	{
		return ( CZWnd* )::GetWindowLong( hWnd, GWL_USERDATA );
	}
	CZWnd * p=GetWndFromHandle(::GetParent(...));


你可能感兴趣的:(获取父窗口类)