COXMaskedEdit::LPtoRP

Dundas

COXMaskedEdit::LPtoRP

Class Members | Overview

int LPtoRP(int nLogicalPos) const

Parameters

nLogicalPos

Logical position in the edit control (only takes into account non-literal characters).

Return Value

The corresponding real position (taking into account all symbols including literals) or one (1) if nLogicalPos is not a valid logical position.

Remarks

Converts the logical position within the masked edit control to the corresponding real one.

All COXMaskedEdit functions that take a cursor position as an argument interpret it as a real position within the control (taking into account all symbols including literals). But sometimes we want to set the cursor at a position before or after a particular non-literal symbol. This is where this method comes in handy.

See also: RPtoLP