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. Doh.. Why no 3D look!?

Doh.. Why no 3D look!?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++asp-nettutorialquestion
4 Posts 3 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.
  • R Offline
    R Offline
    Rickard Andersson20
    wrote on last edited by
    #1

    I feel kinda stupid asking this... but when I try creating my edit box I can't get it to look 3D!!! :~ The font that the edit box has is damn ugly too! X| How to get away from these things!? I never had these problems when I did the same on VC++ 6! Now I'm using Vc++ 7 Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

    Z 1 Reply Last reply
    0
    • R Rickard Andersson20

      I feel kinda stupid asking this... but when I try creating my edit box I can't get it to look 3D!!! :~ The font that the edit box has is damn ugly too! X| How to get away from these things!? I never had these problems when I did the same on VC++ 6! Now I'm using Vc++ 7 Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

      Z Offline
      Z Offline
      Zoltan Csizmadia
      wrote on last edited by
      #2

      Set the font to the parent's font. pYourEdit->SetFont(pYourEdit->GetParent()->GetFont()); or just simply: pYourEdit->SetFont(GetFont()); , if you are doing it from the code of parent's window. Zolee

      R 1 Reply Last reply
      0
      • Z Zoltan Csizmadia

        Set the font to the parent's font. pYourEdit->SetFont(pYourEdit->GetParent()->GetFont()); or just simply: pYourEdit->SetFont(GetFont()); , if you are doing it from the code of parent's window. Zolee

        R Offline
        R Offline
        Rickard Andersson20
        wrote on last edited by
        #3

        Sorry I didn't tell you that I don't use MFC! I create my edit box like this: wndCmdEdit = CreateWindow("edit", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | ES_MULTILINE, 5, 130, 385, 20, hWnd, (HMENU)IDC_MAINWNDEDIT, hInst, NULL); Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

        PJ ArendsP 1 Reply Last reply
        0
        • R Rickard Andersson20

          Sorry I didn't tell you that I don't use MFC! I create my edit box like this: wndCmdEdit = CreateWindow("edit", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | ES_MULTILINE, 5, 130, 385, 20, hWnd, (HMENU)IDC_MAINWNDEDIT, hInst, NULL); Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

          PJ ArendsP Offline
          PJ ArendsP Offline
          PJ Arends
          wrote on last edited by
          #4

          For 3D look, use the CreateWindowEx() function with the WS_EX_CLIENTEDGE extended window style. Then use SendMessage() to send a WM_SETFONT message to the edit control to set it's font.


          CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!

          Within you lies the power for good; Use it!

          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