Called by MaxOmfSdk to drive a progress meter dialog
OmfProgressHandler() is a place-holder for the an application
defined callback function passed to MaxOmfSdk through the
MxOmfAppIFInfo_t struct. See MxOmfAppIFInfo_t
See OmfSupp.cpp of the MaxOmfSdk demo application for a
working example for Win32/MFC. This drives an MFC dialog class -
See OmfPgDlg.h and OmfPgDlg.cpp for the progress dialog
implementation. This may be used unchanged.
Params:
void* vpProgressDlg - void pointer to application supplied progress meter
int start - If > zero, sets number to increment (steps) if zero, increments (steps)
TCHAR* opName - Unicode string for 1st item of progress meter (operation Name)
TCHAR* statLine1 - Unicode string for 2nd item of progress meter
TCHAR* statLine2 - Unicode string for 3rd item of progress meter
BOOL userCanCancel - Command flag - progress and operation cancel allowed
BOOL* cancel - Flag - if userCanCancel is TRUE, when *cancel goes TRUE, abort
Returns:
The value of of the increment count
Usage:
See OmfSup.cpp OmfProgressHandler()
extern int OmfProgressHandler(void* vpProgressDlg,
int start,
TCHAR* opName,
TCHAR* statLine1,
TCHAR* statLine2,
BOOL userCanCancel,
BOOL* cancel);