469,648 Members | 1,394 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

RichEdit hook using visual c++

I am using a class library built by michael kennedy that creates a
system wide hook on the WH_KEYBOARD_LL, but I wanted to changed it to
become a hook for a RichEdit box in another application.

I modified the class keeping a majority of his code, and built a
c#(.net) front end to use this c++ built core library, passing it the
hook type of EM_SETTEXTEX (WM_USER + 97) and the threadID of the
richedit box, his class comes up telling me that this type of hook has
not been implemented. The question/problem here is what includes and
any defines need to be included in the .cpp hook file to work for a
RichEdit box and could it be that I am using a wrong version of
RichEdit?

Has anyone dealt with this type of c++ RichEdit(EM_SETTEXTEX) hook?

Jul 23 '05 #1
5 4469

<mu*******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I am using a class library built by michael kennedy that creates a
system wide hook on the WH_KEYBOARD_LL, but I wanted to changed it to
become a hook for a RichEdit box in another application.

I modified the class keeping a majority of his code, and built a
c#(.net) front end to use this c++ built core library, passing it the
hook type of EM_SETTEXTEX (WM_USER + 97) and the threadID of the
richedit box, his class comes up telling me that this type of hook has
not been implemented. The question/problem here is what includes and
any defines need to be included in the .cpp hook file to work for a
RichEdit box and could it be that I am using a wrong version of
RichEdit?

Has anyone dealt with this type of c++ RichEdit(EM_SETTEXTEX) hook?


There is no such thing as a "c++ RichEdit". You need one of the microsoft
newsgroups, presumably one with csharp in its name?

-Howard
Jul 23 '05 #2
There is no such thing as a hook built in c++ that filters the
EM_SETTEXTEX msg?

Jul 23 '05 #3
mu*******@gmail.com wrote:
There is no such thing as a hook built in c++ that filters the
EM_SETTEXTEX msg?


As Howard stated. Your problem is related to an MS-Windows
specific API. It is not related to the C++ Language (which
this newsgroup addresses). For example, I use the GCC g++
compiler on Linux, and there is no such thing as EM_SETTEXTEX
or RichEdit; there ARE similar, but different, features in
some of the optional GUI toolkits. You need to address your
question to one of the MS-Windows Developer newsgroups - because
your problem is specific to Windows.

Regards,
Larry
Jul 23 '05 #4

<mu*******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
There is no such thing as a hook built in c++ that filters the
EM_SETTEXTEX msg?

There is no such message defined by the C++ language. It's something
Microsoft defined. Ask on a newsgroup on the msnews.microsoft.com
newsserver.

Please see: http://www.parashift.com/c++-faq-lite/

-Howard
Jul 23 '05 #5

<mu*******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
There is no such thing as a hook built in c++ that filters the
EM_SETTEXTEX msg?


No, there isn't even anything that looks like such a message or constant in
C++. Calling a member function is sending an object a "message" over here.
What you are dealing with is a proprietary system for transferring data
between handles in a proprietary environment which, incidentally, is not
C++.

Best you redirect your question to one of the microsoft-only newsgroups.

Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Taylor | last post: by
3 posts views Thread by Omar | last post: by
1 post views Thread by Patty O'Dors | last post: by
reply views Thread by murlbrown | last post: by
22 posts views Thread by schneider | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.