Before you begin coding, you should understand the general steps involved in the creation and function of a communication object. The steps are as follows:
a.
ULONG cb; /* length of data structure */ HAB hAB; /* anchor block handle */ HMQ hmq; /* handle to message queue */ ULONG ObjectID; /* ObjectID attribute as specified in */ /* an acviewport tag */ HWND hWndParent; /* handle to acviewport parent window */ HWND hWndOwner; /* handle to acviewport owner window */ HWND hWndACVP; /* handle to acviewport */
IPF supplies all but the last piece of information in this data structure for the communication object. If the communication object creates an application-controlled window, it must place the handle to that window in the last element of the data structure before returning to IPF. IPF uses the handle to size and position the window.
If the communication object is global (loaded by means of a :docprof. tag), the last 3 items are not needed and are set to null by IPF.
a.