setting cursor postion

Hello,

i m newbie.i have develop an application which on OnInitDialog() set values on the editbox

email_msg.SetWindowTextW(L" hello world");

but problem is that it set the curosr position at the start of edit box i want cursor position after d of hello world how i do this

any API or method for setting cursor

Thanks

Salman



Answer this question

setting cursor postion

  • shaeron

    hello,

    int len=strlen(L"Hello world");

    just Simple after email_msg.SetWindowTextW

    email_msg.setsel(len,len);

    Thanks

    Salman


  • setting cursor postion