I am new to MFC.
How to release resource which is passed as (WPARAM)
in SendMessage()
.
Here I using "new" to create for it. Following is the snapshot for same.
void Build::BuildCube()
{
SCtPt *data = new SCtPt;
data->vm = true;
int dir = 100;
MFrame()->SendMessage(WM_MAP_NEW, (WPARAM)data, (LPARAM) dir);
}
I want to make sure "data" resource get released of this function.
Thanks...