CAtlNavigateData::SetReadStatusCallback 

Call this method to assign a response processing callback function.


PFNATLSTATUSCALLBACK SetReadStatusCallback(
   PFNATLSTATUSCALLBACK pfn,
   DWORD_PTR dwData 
) throw( );

Parameters

pfn

A pointer to the response processing callback function, as defined by the PFNATLSTATUSCALLBACK typedef.

dwData

Context data that is to be passed to the callback function each time it is invoked.

Returns a pointer to a previously assigned callback function, or NULL if no callback was assigned.

If a read status callback is installed, the CAtlHttpClientT class will call the provided function whenever new response data arrives. This mechanism allows for the display of partial responses (such as images that are displayed incrementally) and progress bars.

Community Additions

ADD
Show: