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. Non-Client Paint Issue

Non-Client Paint Issue

Scheduled Pinned Locked Moved C#
comtestingbeta-testinghelpquestion
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.
  • N Offline
    N Offline
    notsotragichero
    wrote on last edited by
    #1

    In short, I need to be able to do this: http://i6.photobucket.com/albums/y210/notsotragichero/Chrome.png[^] I need to be able to add a small image in exactly the same spot Google has done here in Vista / 7. I have tried numerous solutions over the past week, but can not get this to be fully functional. Even once the image is painted, the NC area will not refresh, unless it is clicked off of, even when using RedrawWindow(). It shows the painted image, and an un-rendered border / titlebar. [DllImport("user32.dll")] static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags); private void OnTimer1Tick(object sender, EventArgs e) { RedrawWindow(this.Handle, IntPtr.Zero, IntPtr.Zero, 0x0400/*RDW_FRAME*/ | 0x0100/*RDW_UPDATENOW*/ | 0x0001/*RDW_INVALIDATE*/); } *The tick is just for current testing purposes* Is there something, hopefully simple, that I am missing? Thanks, Brandon

    N 1 Reply Last reply
    0
    • N notsotragichero

      In short, I need to be able to do this: http://i6.photobucket.com/albums/y210/notsotragichero/Chrome.png[^] I need to be able to add a small image in exactly the same spot Google has done here in Vista / 7. I have tried numerous solutions over the past week, but can not get this to be fully functional. Even once the image is painted, the NC area will not refresh, unless it is clicked off of, even when using RedrawWindow(). It shows the painted image, and an un-rendered border / titlebar. [DllImport("user32.dll")] static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags); private void OnTimer1Tick(object sender, EventArgs e) { RedrawWindow(this.Handle, IntPtr.Zero, IntPtr.Zero, 0x0400/*RDW_FRAME*/ | 0x0100/*RDW_UPDATENOW*/ | 0x0001/*RDW_INVALIDATE*/); } *The tick is just for current testing purposes* Is there something, hopefully simple, that I am missing? Thanks, Brandon

      N Offline
      N Offline
      Natza Mitzi
      wrote on last edited by
      #2

      The best thing I know is to use a form without borders and do your own form borders. You can see that on chrome, msn messenger, media player and more. If you do find a way to draw on that area, please post your answer. Thanks :)

      Natza Mitzi Analysis Studio Statistical Analysis Software

      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