Good day or Night!
i spent most of the day studying the richedit stuff.
but was stump upon one problem. Within a example I notice that there setcolor proc


setcolor proc
LOCAL cfm:CHARFORMAT
invoke SendMessage,hwndRichEdit, EM_SETBKGNCOLOR,0,BackgroundColor
invoke RtlZeroMemory,addr cfm,sizeof cfm
mov cfm.cbSize,sizeof cfm
mov cfm.dwMask,CFM_COLOR
push TextColor
pop cfm.crTextColor
invoke SendMessage,hwndRichEdit,EM_SETCHARFORMAT,[color=blue]SCF_ALL[/color],addr cfm


The SCF_ALL is what's been bugging I search for it in masm32,windows,gdi32.inc's
where is this reference in the masm32 pkg?
Posted on 2004-04-09 22:00:16 by Tweak
SCF_ALL equ 4

; in windows.inc

Get the latest version of the Windows.inc here:
http://snipurl.com/5maw
Posted on 2004-04-09 22:30:45 by JimmyClif
Thank U Sir!

For the update =)
Posted on 2004-04-10 10:02:53 by Tweak
From the Win32 Programmer's Reference:
SCF_ALL Applies the formatting to all text in the control.
SCF_SELECTION Applies the formatting to the current selection. If the selection is empty, the character formatting is applied to the insertion point, and the new character format is in effect only until the insertion point changes.
SCF_WORD | SCF_SELECTION Applies the formatting to the selected word or words. If the selection is empty but the insertion point is inside a word, the formatting is applied to the word. The SCF_WORD value must be used in conjunction with the SCF_SELECTION value.
Raymond
Posted on 2004-04-10 11:52:16 by Raymond