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#
  4. how draw a window titlebar look like always active?

how draw a window titlebar look like always active?

Scheduled Pinned Locked Moved C#
question
4 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
    Sasuko
    wrote on last edited by
    #1

    i know to handle WinPrc() funzion, but how?

    J 1 Reply Last reply
    0
    • S Sasuko

      i know to handle WinPrc() funzion, but how?

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Derive a class from System.Windows.Forms.Form, and override the WndProc method. As a side note, it's not a good idea to do custom drawing on the title bar. The title bar is maintained by the OS; in new versions of Windows, your app may not port well. In fact, Vista migration guidlines specifically mention that drawing on the title bar will be corrupted in Vista since the window manager composites how the title bar is blended with the background (as windows are translucent in Vista).

      S 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Derive a class from System.Windows.Forms.Form, and override the WndProc method. As a side note, it's not a good idea to do custom drawing on the title bar. The title bar is maintained by the OS; in new versions of Windows, your app may not port well. In fact, Vista migration guidlines specifically mention that drawing on the title bar will be corrupted in Vista since the window manager composites how the title bar is blended with the background (as windows are translucent in Vista).

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

        so what do you suggest me to do?

        J 1 Reply Last reply
        0
        • S Sasuko

          so what do you suggest me to do?

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          In regards to the WndProc or the titlebar drawing?

          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