if (OS.IsUnicode) return wcsPos;
int wcsToMbcsPos (int wcsPos) {	if (wcsPos <= 0) return 0;	if (OS.IsUnicode) return wcsPos;	int hwndText = OS.GetDlgItem (handle, CBID_EDIT);	if (hwndText == 0) return wcsPos;	int mbcsSize = OS.GetWindowTextLengthA (hwndText);	if (mbcsSize == 0) return 0;	byte [] buffer = new byte [mbcsSize + 1];	OS.GetWindowTextA (hwndText, buffer, mbcsSize + 1);	int mbcsPos = 0, wcsCount = 0;	while (mbcsPos < mbcsSize) {		if (wcsPos == wcsCount) break;		if (OS.IsDBCSLeadByte (buffer [mbcsPos++])) mbcsPos++;		wcsCount++;	}	return mbcsPos;}