Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

35 lines
919 B

/************************************************************************
* *
* CBRDCAST.CPP *
* *
* Copyright (C) Microsoft Corporation 1993-1994 *
* All Rights reserved. *
* *
************************************************************************/
#include "stdafx.h"
#pragma hdrstop
#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;
}