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. Windows API
  4. How to add controls with black forecolor in aero glass

How to add controls with black forecolor in aero glass

Scheduled Pinned Locked Moved Windows API
helpcsharptutorialquestion
3 Posts 2 Posters 11 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
    softwarejaeger
    wrote on last edited by
    #1

    Hello, i've posted this in the VisualBasic .NET board, but now i've found the better one, the vista board, now... i've made an extended aero glass form with the DwmExtendFrameIntoClientArea. The problem now is, that i cannot see the text, because the ForeColor is Black and Vista makes everything is black transparent (like the glass effect), so how get i my text in black there? I know, i can draw the text, but i have so much controls and have there an textbox control, so i can't draw easily the text. Look at the MediaPlayer, at the bottom margin, there is the text of the song and so on and that's not drawed, but with an white shadow. Can somebody help me to get my Text in Black?

    M 1 Reply Last reply
    0
    • S softwarejaeger

      Hello, i've posted this in the VisualBasic .NET board, but now i've found the better one, the vista board, now... i've made an extended aero glass form with the DwmExtendFrameIntoClientArea. The problem now is, that i cannot see the text, because the ForeColor is Black and Vista makes everything is black transparent (like the glass effect), so how get i my text in black there? I know, i can draw the text, but i have so much controls and have there an textbox control, so i can't draw easily the text. Look at the MediaPlayer, at the bottom margin, there is the text of the song and so on and that's not drawed, but with an white shadow. Can somebody help me to get my Text in Black?

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

      Use DrawThemeTextEx(). Check out Vista Goodies in C++: Using Glass in Your UI[^], the code is pretty straightforward so it shouldn't be too tough to port to VB.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ"); Ford, what's this fish doing in my ear?

      S 1 Reply Last reply
      0
      • M Michael Dunn

        Use DrawThemeTextEx(). Check out Vista Goodies in C++: Using Glass in Your UI[^], the code is pretty straightforward so it shouldn't be too tough to port to VB.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ"); Ford, what's this fish doing in my ear?

        S Offline
        S Offline
        softwarejaeger
        wrote on last edited by
        #3

        I've seen this tutorial, but is DrawThemeTextEx() not only for Labels or Text? I have an Problem with the TextBox Control too. Why i cannot get it like in the Explorer or the Internet Explorer, there is the font black too.?!?

        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