471,610 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

API tabstops

Hi, Ive tried searching the net for an example on how to use the
SendMessage API with tabstops since the program Im working with has all
the same class names and most captions are blank, Im not sure why.
Thank you.

Feb 18 '06 #1
5 2678
I forgot to ask if anyone could provide me with one, sorry, I didnt
have my coffee this morning.

Feb 18 '06 #2
<si***************@yahoo.it> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I forgot to ask if anyone could provide me with one, sorry, I didnt
have my coffee this morning.


// at the top
using System.Runtime.InteropServices;

// after the class declaration
private const int EM_SETTABSTOPS = 0x00CB;
[DllImport("User32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr h, int msg, int wParam, int
[] lParam);

// in the Form_Load
int[] stops = {16};
SendMessage(this.textBox1.Handle, EM_SETTABSTOPS, 1, stops);
Feb 18 '06 #3
Thanks man, Ill give it a try. And does anyone know of a website that
has a list all of those hex values such as the one for EM_SETTABSTOPS
and others?

Feb 18 '06 #4
I gave this a try, it didnt work. I read about EM_SETTABSTOPS on the
msdn. Im trying to get the cursor to hit buttons and textboxes but
since I dont have any unique ID on them, the only way is to use
tabstops.

Feb 18 '06 #5
Have a look at http://www.pinvoke.net/.

<si***************@yahoo.it> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Thanks man, Ill give it a try. And does anyone know of a website that
has a list all of those hex values such as the one for EM_SETTABSTOPS
and others?

Feb 18 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Duncan Booth | last post: by
4 posts views Thread by VCIF | last post: by
4 posts views Thread by munglet | last post: by
25 posts views Thread by mdh | last post: by
83 posts views Thread by deppy_3 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.