Page 1 of 1

PostPosted: Mon Apr 07, 2003 3:52 pm
by darwin
Hi
How can I obtain the current curser position in an editbox?
thx

cya

http://www.strange-phenomenom.de/

PostPosted: Tue Apr 08, 2003 12:07 am
by KOU
SendMessage to Editbox.

I remember using
#define EM_GETSEL 0x00B0 // Get start/end of current selection (e,s)=0,0

I think it worked for cursor pos too.

Sorry guy, for cut and paste from your header file.

KOU

PostPosted: Tue Apr 08, 2003 1:18 pm
by darwin
Thanks alot - it works.

i=sendmsg(id,0x00b0,0,0);
x=i>>16;
y=i&0xffff;

cya

http://www.strange-phenomenom.de/