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. General Programming
  3. C / C++ / MFC
  4. Confused about layout due to differen language OS

Confused about layout due to differen language OS

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestionannouncement
2 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    Stan the man
    wrote on last edited by
    #1

    Hi. I am really confused why the layout on an English version and that from anotehr OS (Chinese etc) would display differently. THe other OS would display everything in a smaller area than teh ENglish OS leaving more empty space. In the CformView dialog, I made sure that the FOnt size and type (10, MS Sans Serif - should be on all computers) are common so that the layout as I would see it on my computer "should" be what someone would see it on another computer. I know I ma definitely missing something. Can someone help and give a few hints on how to deal with this? Thanks in advance! Stan the man

    N 1 Reply Last reply
    0
    • S Stan the man

      Hi. I am really confused why the layout on an English version and that from anotehr OS (Chinese etc) would display differently. THe other OS would display everything in a smaller area than teh ENglish OS leaving more empty space. In the CformView dialog, I made sure that the FOnt size and type (10, MS Sans Serif - should be on all computers) are common so that the layout as I would see it on my computer "should" be what someone would see it on another computer. I know I ma definitely missing something. Can someone help and give a few hints on how to deal with this? Thanks in advance! Stan the man

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Hi, how did you create your font? There is two possibilities that more or less "ensures" you compatibility BOOL CreatePointFont( int nPointSize, LPCTSTR lpszFaceName, CDC* pDC = NULL ); but here the "int nPointSize" can depend on the MAPMODE, is not the same MM_TEXT as MM_LOMETRIC (for example) The other one (from Roger Allen's http://www.codeproject.com/printing/printingtricksandtips.asp[^])

      CFont font;
      LOGFONT lf;

      ::ZeroMemory (&lf, sizeof (LOGFONT));

      lf.lfHeight = -MulDiv (12, pDC->GetDeviceCaps (), 72);
      strcpy (lf.lfFaceName, "Arial");
      //use the font

      if it works for printers, it should work for displays too. EDIT: I found this article. http://msdn2.microsoft.com/en-us/library/d8ws31ff(VS.71).aspx[^] I hope it helps

      Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

      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