473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 4708

<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Taylor | last post by:
I am developing a word processor using MS Vis C++ 6 with MFC. I need to get the text of the current line of where the cursor is. I am using richedit (not a control). Does the EM_GETLINE work...
3
by: Omar | last post by:
Hi!! How can i make a global keyboard hook in c#?? thanks...
0
by: PowerPlane | last post by:
Hi, all Happy valentine I am struggling to insert an animated-gif into a CRichEditCtrl. Before I post this question here, I did some googling. And I found an article to introduce how to insert a...
1
by: Patty O'Dors | last post by:
Hi I'm trying to create an application with a RichEdit control, I found that CreateWindow always returns a null hWnd unless I call LoadLibrary("riched20.dll") first (the error code from...
2
by: oracle3001 | last post by:
Hi All, I want to capture / read the text flowing through a chat window that is part of an external application. I should note that I don't just want to capture the text in the chat window...
0
by: murlbrown | last post by:
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. ...
2
by: Senapathy | last post by:
VC++ .NET 2003 Standard Edition Win XP, SP2 Hi, I have a code that builds under VC6.0, but fails to link in VC7.1. The offending code is as follows: _AFX_RICHEDIT_STATE* const pEditState...
22
by: schneider | last post by:
I need to hook the system mouse down event. I'm trying to replicate how a context menu hides when the mouse clicks outside of the control. Thanks, Schneider
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.