BCGSoft Professional Editor for MFC
BOOL CBCGPEditCtrl::GoToNextMarker ( DWORD  dwMarkerType,
BOOL  bDirection = TRUE 
)

Moves the caret to the next marker in the specified (up or down) direction.

Returns
Nonzero if the caret was moved to the next marker; otherwise 0.

If the specified direction is down and the caret is placed at the last marker, the caret will be moved to the first marker. If the specified direction is up and the caret is placed at the first marker, the caret will be moved to the last marker.

Parameters
dwMarkerTypeSpecifies the maker type.
bDirectionThe direction. TRUE - down, FALSE - up.