window::ChildMessage


NAME

ChildMessage - Receive a message from a subwindow

SYNOPSIS

#include "xwindow.h"
virtual void window::ChildMessage(w_msg &message);

DESCRIPTION

A window may send a message to its parent when something important happens in the window. Examples of situations where such messages are being sent are: In all these cases the parent window must be notified because other windows may be affected by the event. For example, when a slider in a scrollbar is repositioned, the contents of the window next to the scrollbar must be adjusted accordingly.

A w_msg is a simple structure:


struct w_msg
{
   int    id;
   long   timestamp;
   window *from;
};

SEE ALSO

ParentMessage

DIAGNOSTICS