34 lines
900 B
C++
34 lines
900 B
C++
/************************************************************************
|
|
* *
|
|
* CBRDCAST.CPP *
|
|
* *
|
|
* Copyright (C) Microsoft Corporation 1993-1994 *
|
|
* All Rights reserved. *
|
|
* *
|
|
************************************************************************/
|
|
#include "stdafx.h"
|
|
|
|
#ifndef _DEF_CBROADCAST
|
|
#include "cbrdcast.h"
|
|
#endif
|
|
|
|
static BOOL __stdcall EnumChildProc(HWND hwnd, LPARAM lval);
|
|
|
|
CBroadCastChildren::CBroadCastChildren(HWND hwnd, UINT msgOrg,
|
|
WPARAM wParamOrg, LPARAM lParamOrg)
|
|
{
|
|
msg = msgOrg;
|
|
wParam = wParamOrg;
|
|
lParam = lParamOrg;
|
|
|
|
EnumChildWindows(hwnd, (WNDENUMPROC) EnumChildProc, (LPARAM) (PSTR) this);
|
|
}
|
|
|
|
#define pchild ((CBroadCastChildren *) lval)
|
|
|
|
static BOOL STDCALL EnumChildProc(HWND hwnd, LPARAM lval)
|
|
{
|
|
SendMessage(hwnd, pchild->msg, pchild->wParam, pchild->lParam);
|
|
return TRUE;
|
|
}
|