Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Set font in WinCE

Set font in WinCE

Scheduled Pinned Locked Moved Mobile
helpquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dlhson2
    wrote on last edited by
    #1

    How can I set font to a LOGFONT in WinCE ? I'm using: LOGFONT lf; memset(&lf,0,sizeof(LOGFONT)); lf.lfCharSet=VIETNAMESE_CHARSET; lf.lfStrikeOut=TRUE; lf.lfHeight=10; lf.lfFaceName=_T("Times New Roman"); /* ERROR HERE !!!!!!!!!!!! (in Win2k, I used strcpy successfully*/ CFont font; font.CreateFontIndirect(&lf); pDC->SelectObject(&font); Help me ! ======================= Nothing is perfect

    J 1 Reply Last reply
    0
    • D dlhson2

      How can I set font to a LOGFONT in WinCE ? I'm using: LOGFONT lf; memset(&lf,0,sizeof(LOGFONT)); lf.lfCharSet=VIETNAMESE_CHARSET; lf.lfStrikeOut=TRUE; lf.lfHeight=10; lf.lfFaceName=_T("Times New Roman"); /* ERROR HERE !!!!!!!!!!!! (in Win2k, I used strcpy successfully*/ CFont font; font.CreateFontIndirect(&lf); pDC->SelectObject(&font); Help me ! ======================= Nothing is perfect

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      dlhson2 wrote: in Win2k, I used strcpy successfully Here you are in the UNICODE realm! Use wcscpy instead.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups