Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RICH EDIT BOXES

Status
Not open for further replies.

paul51

Programmer
May 19, 2000
38
US
Can someone tell me where I can find info on how to use rich edit boxes. I haven't had any luck with them.
Paul
 
There are several versions of Rich Edit Controls.
You can find documantation in MSDN Help on path:
/PlatformSDK/User Interface Services/Windows User Interface/Rich Edit Controls

In order to use them you must load the appropiate library:
Code:
HMODULE hRich = LoadLibrary(_T("RichEd32.dll"));


....

FreeLibrary(hRich);

After loading library you may create a rich edit control form resurces or using
Code:
CreateWindowEx
function (similar with edit box). The difference is the name of the class :
you should use the constant
Code:
RICHEDIT_CLASS
.

You handle the rich edit control by senting windows messages. E.g.: set the paragraph formatting:
Code:
PARAFORMAT pf;
.. fill the structure
SendMessage(hWndRich, EM_SETPARAFORMAT, 0, (LPARAM)&pf);



Marius Samoila
Brainbench MVP for Visual C++
 
Is the load routine called from the init routine? if not, in which function would I place the load routine? This is my first experience with Visual C++. I'm using ver. 6.0. I'm trying to convert a unix app from C, Motif and Fortran to a Visual C++ app.

Any help would be greatly aprreciated.

Scott Urban
Sr. Software Engineer
Lockheed Martuin

email: urban@ast.lmco.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top