-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Review EM_* message correctness #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| internal static partial class Interop | ||
| { | ||
| /// <summary> | ||
| /// RichTextBox Control Messages. Note that some messages have the same name but different value compared to normal Edit Control Messages. | ||
| /// Copied form richedit.h | ||
| /// </summary> | ||
| public static class RichEditMessages | ||
RussKie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| public const int EM_CANPASTE = WindowMessages.WM_USER + 50; | ||
| public const int EM_DISPLAYBAND = WindowMessages.WM_USER + 51; | ||
| public const int EM_EXGETSEL = WindowMessages.WM_USER + 52; | ||
| public const int EM_EXLIMITTEXT = WindowMessages.WM_USER + 53; | ||
| public const int EM_EXLINEFROMCHAR = WindowMessages.WM_USER + 54; | ||
| public const int EM_EXSETSEL = WindowMessages.WM_USER + 55; | ||
| public const int EM_FINDTEXT = WindowMessages.WM_USER + 56; | ||
| public const int EM_FORMATRANGE = WindowMessages.WM_USER + 57; | ||
| public const int EM_GETCHARFORMAT = WindowMessages.WM_USER + 58; | ||
| public const int EM_GETEVENTMASK = WindowMessages.WM_USER + 59; | ||
| public const int EM_GETOLEINTERFACE = WindowMessages.WM_USER + 60; | ||
| public const int EM_GETPARAFORMAT = WindowMessages.WM_USER + 61; | ||
| public const int EM_GETSELTEXT = WindowMessages.WM_USER + 62; | ||
| public const int EM_HIDESELECTION = WindowMessages.WM_USER + 63; | ||
| public const int EM_PASTESPECIAL = WindowMessages.WM_USER + 64; | ||
| public const int EM_REQUESTRESIZE = WindowMessages.WM_USER + 65; | ||
| public const int EM_SELECTIONTYPE = WindowMessages.WM_USER + 66; | ||
| public const int EM_SETBKGNDCOLOR = WindowMessages.WM_USER + 67; | ||
| public const int EM_SETCHARFORMAT = WindowMessages.WM_USER + 68; | ||
| public const int EM_SETEVENTMASK = WindowMessages.WM_USER + 69; | ||
| public const int EM_SETOLECALLBACK = WindowMessages.WM_USER + 70; | ||
| public const int EM_SETPARAFORMAT = WindowMessages.WM_USER + 71; | ||
| public const int EM_SETTARGETDEVICE = WindowMessages.WM_USER + 72; | ||
| public const int EM_STREAMIN = WindowMessages.WM_USER + 73; | ||
| public const int EM_STREAMOUT = WindowMessages.WM_USER + 74; | ||
| public const int EM_GETTEXTRANGE = WindowMessages.WM_USER + 75; | ||
| public const int EM_FINDWORDBREAK = WindowMessages.WM_USER + 76; | ||
| public const int EM_SETOPTIONS = WindowMessages.WM_USER + 77; | ||
| public const int EM_GETOPTIONS = WindowMessages.WM_USER + 78; | ||
| public const int EM_FINDTEXTEX = WindowMessages.WM_USER + 79; | ||
| public const int EM_GETWORDBREAKPROCEX = WindowMessages.WM_USER + 80; | ||
| public const int EM_SETWORDBREAKPROCEX = WindowMessages.WM_USER + 81; | ||
|
|
||
| // Richedit v2.0 messages | ||
| public const int EM_SETUNDOLIMIT = WindowMessages.WM_USER + 82; | ||
| public const int EM_REDO = WindowMessages.WM_USER + 84; | ||
| public const int EM_CANREDO = WindowMessages.WM_USER + 85; | ||
| public const int EM_GETUNDONAME = WindowMessages.WM_USER + 86; | ||
| public const int EM_GETREDONAME = WindowMessages.WM_USER + 87; | ||
| public const int EM_STOPGROUPTYPING = WindowMessages.WM_USER + 88; | ||
|
|
||
| public const int EM_SETTEXTMODE = WindowMessages.WM_USER + 89; | ||
| public const int EM_GETTEXTMODE = WindowMessages.WM_USER + 90; | ||
|
|
||
| public const int EM_AUTOURLDETECT = WindowMessages.WM_USER + 91; | ||
| public const int EM_GETAUTOURLDETECT = WindowMessages.WM_USER + 92; | ||
| public const int EM_SETPALETTE = WindowMessages.WM_USER + 93; | ||
| public const int EM_GETTEXTEX = WindowMessages.WM_USER + 94; | ||
| public const int EM_GETTEXTLENGTHEX = WindowMessages.WM_USER + 95; | ||
|
|
||
| // Asia specific messages | ||
| public const int EM_SETPUNCTUATION = WindowMessages.WM_USER + 100; | ||
| public const int EM_GETPUNCTUATION = WindowMessages.WM_USER + 101; | ||
| public const int EM_SETWORDWRAPMODE = WindowMessages.WM_USER + 102; | ||
| public const int EM_GETWORDWRAPMODE = WindowMessages.WM_USER + 103; | ||
| public const int EM_SETIMECOLOR = WindowMessages.WM_USER + 104; | ||
| public const int EM_GETIMECOLOR = WindowMessages.WM_USER + 105; | ||
| public const int EM_SETIMEOPTIONS = WindowMessages.WM_USER + 106; | ||
| public const int EM_GETIMEOPTIONS = WindowMessages.WM_USER + 107; | ||
| public const int EM_CONVPOSITION = WindowMessages.WM_USER + 108; | ||
|
|
||
| public const int EM_SETLANGOPTIONS = WindowMessages.WM_USER + 120; | ||
| public const int EM_GETLANGOPTIONS = WindowMessages.WM_USER + 121; | ||
| public const int EM_GETIMECOMPMODE = WindowMessages.WM_USER + 122; | ||
|
|
||
| public const int EM_FINDTEXTW = WindowMessages.WM_USER + 123; | ||
| public const int EM_FINDTEXTEXW = WindowMessages.WM_USER + 124; | ||
|
|
||
| // Rich TextBox 3.0 Asia msgs | ||
| public const int EM_RECONVERSION = WindowMessages.WM_USER + 125; | ||
| public const int EM_SETIMEMODEBIAS = WindowMessages.WM_USER + 126; | ||
| public const int EM_GETIMEMODEBIAS = WindowMessages.WM_USER + 127; | ||
|
|
||
| // BiDi Specific messages | ||
| public const int EM_SETBIDIOPTIONS = WindowMessages.WM_USER + 200; | ||
| public const int EM_GETBIDIOPTIONS = WindowMessages.WM_USER + 201; | ||
|
|
||
| public const int EM_SETTYPOGRAPHYOPTIONS = WindowMessages.WM_USER + 202; | ||
| public const int EM_GETTYPOGRAPHYOPTIONS = WindowMessages.WM_USER + 203; | ||
|
|
||
| // Extended TextBox style specific messages | ||
| public const int EM_SETEDITSTYLE = WindowMessages.WM_USER + 204; | ||
| public const int EM_GETEDITSTYLE = WindowMessages.WM_USER + 205; | ||
|
|
||
| // Ole Objects Disabling message | ||
| public const int EM_SETQUERYRTFOBJ = WindowMessages.WM_USER + 270; | ||
|
|
||
| // Pegasus outline mode messages (RE 3.0) | ||
|
|
||
| // Outline mode message | ||
| public const int EM_OUTLINE = WindowMessages.WM_USER + 220; | ||
|
|
||
| // Message for getting and restoring scroll pos | ||
| public const int EM_GETSCROLLPOS = WindowMessages.WM_USER + 221; | ||
| public const int EM_SETSCROLLPOS = WindowMessages.WM_USER + 222; | ||
|
|
||
| // Change fontsize in current selection by wparam | ||
| public const int EM_SETFONTSIZE = WindowMessages.WM_USER + 223; | ||
| public const int EM_GETZOOM = WindowMessages.WM_USER + 224; | ||
| public const int EM_SETZOOM = WindowMessages.WM_USER + 225; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: the second part of the comment isn't relevant now that you've removed the dupes. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is still relevant, since there dups in richedit.h; if someone decides to copy them they may be (more) aware.