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. Managed C++/CLI
  4. GetWindowDC() problem

GetWindowDC() problem

Scheduled Pinned Locked Moved Managed C++/CLI
helpquestion
4 Posts 2 Posters 14 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
    Nish Nishant
    wrote on last edited by
    #1

    Hello guys I am trying to get the HDC for a form. I am calling GetWindowDC for this, but I am only getting client DC and not the window DC :-( I am not getting the title bar of the form :( Any help? Nish


    The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

    N 1 Reply Last reply
    0
    • N Nish Nishant

      Hello guys I am trying to get the HDC for a form. I am calling GetWindowDC for this, but I am only getting client DC and not the window DC :-( I am not getting the title bar of the form :( Any help? Nish


      The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      My bad or what :-O The problem was not with GetWindowDC. I was later calling GetClientRect instead of GetWindowRect Nish :-O


      The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

      J 1 Reply Last reply
      0
      • N Nish Nishant

        My bad or what :-O The problem was not with GetWindowDC. I was later calling GetClientRect instead of GetWindowRect Nish :-O


        The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

        J Offline
        J Offline
        James T Johnson
        wrote on last edited by
        #3

        LOL, I was trying to figure out how GetWindowDC could give you the wrong DC :) James Simplicity Rules!

        N 1 Reply Last reply
        0
        • J James T Johnson

          LOL, I was trying to figure out how GetWindowDC could give you the wrong DC :) James Simplicity Rules!

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          James T. Johnson wrote: LOL, I was trying to figure out how GetWindowDC could give you the wrong DC Pardon me doc, but I am a GDI newbie and I don't intend to change that either :-) Nish p.s. expect more pestering questions from moi in future


          The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

          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