InetReceiveBitmap Example for C++ 5.0 and later
Note: |
This is not a complete example for handling events, some steps have been omitted. For a complete example of how to handle events, refer to the example Initializing a Computer as a Server and Accepting Connections. |
void CRasterInetSink::OnInetReceiveBitmap(short
iComputer, long hBitmap)
{
//assign bitmap to LEAD RasterView control
m_pDlg->m_LEADRasterView1.GetRaster().SetBitmap(hBitmap);
/* Are there any messages in the queue? */
MSG msg;
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
/* Translate virtual key codes */
TranslateMessage(&msg);
/* Dispatches message to window. */
DispatchMessage(&msg);
}
}