if (OS.IsUnicode) return mbcsPos;
int mbcsToWcsPos (int mbcsPos) {	if (mbcsPos <= 0) return 0;	if (OS.IsUnicode) return mbcsPos;	int mbcsSize = OS.GetWindowTextLengthA (hwndText);	if (mbcsSize == 0) return 0;	if (mbcsPos >= mbcsSize) return mbcsSize;	byte [] buffer = new byte [mbcsSize + 1];	OS.GetWindowTextA (hwndText, buffer, mbcsSize + 1);	return OS.MultiByteToWideChar (getCodePage (), OS.MB_PRECOMPOSED, buffer, mbcsPos, null, 0);}