See above for possible end notification. And one more minor tweak, the following gives the appearance of faster rendering.
In the module's RenderWaveMapWithDIB function, move the following line from the end of the routine to just above/before the comment:
' Recalculate the wave
Code:SetDIBitsToDevice FrmWaterEffect.picWaterEffect.hdc, 0, 0, bi24BitInfo.bmiHeader.biWidth, bi24BitInfo.bmiHeader.biHeight, 0, 0, 0, bi24BitInfo.bmiHeader.biHeight, arrTargetPic(1), bi24BitInfo, DIB_RGB_COLORS




Reply With Quote