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. ATL / WTL / STL
  4. (WTL) XP style password edit box

(WTL) XP style password edit box

Scheduled Pinned Locked Moved ATL / WTL / STL
c++question
5 Posts 4 Posters 1 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.
  • E Offline
    E Offline
    Ernesto D
    wrote on last edited by
    #1

    Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!

    J J M E 4 Replies Last reply
    0
    • E Ernesto D

      Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!

      J Offline
      J Offline
      Jens Doose
      wrote on last edited by
      #2

      You have to set the right font, I think it was Tahoma, but not 100% sure. Jens

      1 Reply Last reply
      0
      • E Ernesto D

        Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!

        J Offline
        J Offline
        Jason De Arte
        wrote on last edited by
        #3

        I had the same problem a while back when I added a manifest to a MFC project - the password edit boxes had vertical lines instead of nice round circle characters. The issue was that the edit control had the wrong font associated with it. In that project I added the following in the dialogs OnInitDialog() function... GetDlgItem(IDC_EDIT_PASSWORD)->SetFont( CFont::FromHandle((HFONT)GetStockObject(DEFAULT_GUI_FONT)) ); In WTL, it might* look something like this... ::SendMessage(GetDlgItem(IDC_EDIT_PASSWORD), WM_SETFONT, (WPARAM)AtlGetStockFont(DEFAULT_GUI_FONT), MAKELPARAM(FALSE, 0)); *your mileage may vary [ Jason De Arte | Toy Maker | 1001010.com ]

        1 Reply Last reply
        0
        • E Ernesto D

          Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          Make sure your dialog font is set to MS Shell Dlg and not MS Sans Serif. The dot thingy in XP is a Unicode character that MS Sans Serif does not contain. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but how will we fit the hamster inside the accordion?

          1 Reply Last reply
          0
          • E Ernesto D

            Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!

            E Offline
            E Offline
            Ernesto D
            wrote on last edited by
            #5

            I set the font to Tahoma in resource editor and the problem dissapeared Thanks guys!

            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