473,385 Members | 1,356 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,385 software developers and data experts.

RICHEDIT / InitCommonControls

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 not can
I redistribute this DLL?

Further, I think it might be something to do with the the fact that
InitCommonControls has been replaced by InitCommonControlsEx, which takes a
structure telling it which ones to initialize, but the RICHEDIT doesn't seem
to be one of the ones listed in the flags you can set in this parameter. Does
this mean that in the most recent version of windows, the RICHEDIT has been
chucked out of the common controls suite? If so, what was its offence?
Nov 17 '05 #1
1 2522
See:
http://msdn.microsoft.com/library/de...itcontrols.asp

As far as I know, RichEdit was always in its own dll, and never part of the
comctl32.dll.

/Andreas

"Patty O'Dors" <Pa********@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
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 not can I redistribute this DLL?

Further, I think it might be something to do with the the fact that
InitCommonControls has been replaced by InitCommonControlsEx, which takes a structure telling it which ones to initialize, but the RICHEDIT doesn't seem to be one of the ones listed in the flags you can set in this parameter. Does this mean that in the most recent version of windows, the RICHEDIT has been chucked out of the common controls suite? If so, what was its offence?

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
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. ...
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: ozbear | last post by:
The title says it all. Since a Richedit control doesn't understand a backspace character ('\b', or 0x08) when I receive one I need to programmatically delete the last character from the Richedit...
1
by: P | last post by:
Hi. I am writting application and I need html richedit. When I will use: control_name.text="<img sroc=\"1.jpg\">" I wanna have image in richedit. But I dont know where can I find that...
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...
10
by: Patty O'Dors | last post by:
Hi In trying to create a RICHEDIT-derived ActiveX control in ATL, I've managed to successfully implement the stock font property, thanks for all your help on this. I'm now stuck on receiving...
0
by: brett forsgren via .NET 247 | last post by:
Long story short, I had an EditBox but when I tried to displaythe Latin letters with macrons (lines) over them, I got strangeresults. If I install support for East Asian Languages, theproblem goes...
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. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.