Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Font Settings in ShowNote
#8
Code:
Copy      Help
int htb=ShowNote("notename" "some text")
int h=child("" "RichEdit20A" htb)

SendMessage h EM_SETBKGNDCOLOR 0 0x00ffff

CHARFORMAT cf.cbSize=sizeof(CHARFORMAT)
cf.dwMask=CFM_COLOR|CFM_BOLD|CFM_FACE|CFM_SIZE
cf.crTextColor=0xff0000
cf.dwEffects=CFE_BOLD
strncpy(&cf.szFaceName "Comic Sans MS" 31)
cf.yHeight=400 ;;twips

SendMessage h EM_SETCHARFORMAT SCF_ALL &cf


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)