WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
 

HiEdit: EM_GETTEXTRANGE faster than WM_GETTEXT, HiEdit control: The EM_GETTEXTRANGE message is much faster than WM_GETTEXT message

jballi
Quote Post


New Member
*

Group: Members
Posts: 14
Member No.: 24334
Joined: 10-July 09


Sponsored Links
You certainly can't call it a bug. More of an observation really.

HiEdit control.

For some reason the EM_GETTEXTRANGE message is much faster than WM_GETTEXT message for the same amount of work. How much faster? About 2X, according to my amateur benchmarks. Not a big deal. Just wanted to point it out.
PMEmail Poster
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 891
Member No.: 5019
Joined: 13-May 07


Hi

EM_GETTEXTRANGE message retrieves a specified range of characters from a rich edit control.

An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.

This can you read by msdn.

Quick search google

Greets
PMUsers Website
Top
jballi
Quote Post


New Member
*

Group: Members
Posts: 14
Member No.: 24334
Joined: 10-July 09


QUOTE (ragdog @ Feb 26 2010, 08:07 AM)
EM_GETTEXTRANGE message retrieves a specified range of characters from a rich edit control.

An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.

This can you read by msdn.

Quick search google

Greets

Thank you for your reply.

I was referring to these messages as they apply to the HiEdit control. Although the documentation from msdn is a good reference, it does not always apply exactly to the HiEdit control.

In this case, both of these messages extract text from the HiEdit control. One of the messages extracts a range of characters and the other extracts from the beginning of the control up to a specified length. My point was that if both messages were requested to collect the first 512K (for example) of the control, the EM_GETTEXTRANGE message would get the text ~2 times faster than the WM_GETTEXT message.

Them be my thoughts...
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian