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. CGdiObject::CreateStockObject

CGdiObject::CreateStockObject

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • S Offline
    S Offline
    Stlan
    wrote on last edited by
    #1

    Does anybody know if CGdiObject::CreateStockObject requires a call to CGdiObject::DeleteObject once the object is no longer needed ? (I can't find any answer in MSDN! :()

    S 1 Reply Last reply
    0
    • S Stlan

      Does anybody know if CGdiObject::CreateStockObject requires a call to CGdiObject::DeleteObject once the object is no longer needed ? (I can't find any answer in MSDN! :()

      S Offline
      S Offline
      super
      wrote on last edited by
      #2

      Its always better to delete any object which you create. ITs a gud programming ethics. cheers, Super ------------------------------------------ Too much of good is bad,mix some evil in it

      H 1 Reply Last reply
      0
      • S super

        Its always better to delete any object which you create. ITs a gud programming ethics. cheers, Super ------------------------------------------ Too much of good is bad,mix some evil in it

        H Offline
        H Offline
        HumanOsc
        wrote on last edited by
        #3

        Hello, Mircosofts Reference says: "It's not necessary (but it is not harmful) to delete stock objects by calling DeleteObject."

        S S 2 Replies Last reply
        0
        • H HumanOsc

          Hello, Mircosofts Reference says: "It's not necessary (but it is not harmful) to delete stock objects by calling DeleteObject."

          S Offline
          S Offline
          super
          wrote on last edited by
          #4

          Hi, I was just refering to usual programming ethics of creation and deletion of objects. My post was not specific to stock objects :) cheers, Super ------------------------------------------ Too much of good is bad,mix some evil in it

          1 Reply Last reply
          0
          • H HumanOsc

            Hello, Mircosofts Reference says: "It's not necessary (but it is not harmful) to delete stock objects by calling DeleteObject."

            S Offline
            S Offline
            Stlan
            wrote on last edited by
            #5

            Thanks a lot!

            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