- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
module rtf
use kinds !B32 is a
32 bit integer, kind=4
use dfwin
integer(b32), parameter ::
COLORREF = 4
integer(b32), parameter :: LCID =
DWORD
!DEC$ OPTIONS /ALIGN=RECORDS=PACKED /WARN=NOALIGN
type
t_charformat !Charformat2
sequence
integer(UINT) :: cbSize
integer(DWORD) ::
dwMask
integer(DWORD) ::
dwEffects
integer(LONG) ::
yHeight
integer(LONG) ::
yOffset
integer(COLORREF) ::
crTextColor
integer(BYTE) ::
bCharSet
integer(BYTE) ::
bPitchAndFamily
integer(SCHAR) ::
szFaceName(LF_FACESIZE)
integer(WORD) ::
wWeight
integer(SHORT) ::
sSpacing
integer(COLORREF) ::
crBackColor
integer(LCID) ::
lcid
integer(DWORD) ::
dwReserved
integer(SHORT) ::
sStyle
integer(WORD) ::
wKerning
integer(BYTE) ::
bUnderlineType
integer(BYTE) ::
bAnimation
integer(BYTE) ::
bRevAuthor
integer(BYTE) ::
bReserved1
end type
t_charformat
type (t_charformat) :: CharFmt
integer, parameter
:: EM_SETCHARFORMAT = WM_USER + 68
integer, parameter
:: SCF_SELECTION = 16#0001
integer, parameter
:: CFM_HIDDEN = 16#0100 !Defined in richedit.h
integer, parameter
:: CFE_HIDDEN = CFM_HIDDEN
!DEC$ END OPTIONS
end
module
< span style="font-size: 12pt; color: black; font-family: Arial;">In the application I set as follows:
CharFmt % cbSize = sizeof(charfmt)
CharFmt % dwMask = 16#0001
!CFM_BOLD
CharFmt % dwEffects = 16#0001
!CFE_BOLD
CharFmt % yHeight =
null
CharFmt % yOffset =
null
CharFmt % crTextColor =
null
CharFmt % bCharSet =
null
CharFmt % bPitchAndFamily =
null
CharFmt % szFaceName =
null
CharFmt % wWeight =
null
CharFmt % sSpacing =
null
CharFmt % crBackColor =
null
CharFmt % lcid =
null
CharFmt % dwReserved =
null
CharFmt % sStyle =
null
CharFmt % wK
erning =
null
CharFmt % bUnderlineType =
null
CharFmt % bAnimation =
null
CharFmt % bRevAuthor =
null
CharFmt % bReserved1 = 0
iStat = sendmessage(ihRTF,EM_SETCHARFORMAT,SCF_SELECTION,loc(CharFmt))
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page