473,703 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_SET TEXTEX) hook?

Jul 23 '05 #1
5 4753

<mu*******@gmai l.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.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_SET TEXTEX) 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*******@gmai l.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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.microsof t.com
newsserver.

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

-Howard
Jul 23 '05 #5

<mu*******@gmai l.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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
4002
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 when not used with a control? i.e. when RichEdit is the document view. I've got the following syntax :
3
1967
by: Omar | last post by:
Hi!! How can i make a global keyboard hook in c#?? thanks...
0
4782
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 bitmap into a RichEdit http://www.codeguru.com/richedit/richeditrc.htm I can use a timer/thread to replace my bitmap to show the animation. However, the screen goes blink when there are many animated-gif on it. I guess because when I repace a...
1
2543
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 GetLastError is 1407 - couldn't find class). This is even when I link with comctl32.lib and call InitCommonControls. Do I HAVE to use a DLL if I want to use a richedit control, and more importantly, do I know that it will be on the target machine, and if...
2
1671
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 once, I want to get the new text as and when it is posted into the chat window
0
1700
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. 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...
2
3386
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 = _afxRichEditState;
22
6415
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
8662
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9244
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9111
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5922
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4421
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4679
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2439
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.