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. deleting a CStatic object [modified]

deleting a CStatic object [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 4 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
    SteamEngine
    wrote on last edited by
    #1

    how to delete a CStatic object present on the Client window? wt is the right function? i have the following things with me:- 1) Pointer to the object 2) coordinates of the window/object 3) hWnd -- modified at 1:12 Tuesday 1st August, 2006

    C _ H 3 Replies Last reply
    0
    • S SteamEngine

      how to delete a CStatic object present on the Client window? wt is the right function? i have the following things with me:- 1) Pointer to the object 2) coordinates of the window/object 3) hWnd -- modified at 1:12 Tuesday 1st August, 2006

      C Offline
      C Offline
      Cool Ju
      wrote on last edited by
      #2

      Hi, You can hide instead of deleting it using ShowWindow(SW_HIDE). Just a suggestion. Adios, Cool Ju :cool: Dream Ur Destiny

      1 Reply Last reply
      0
      • S SteamEngine

        how to delete a CStatic object present on the Client window? wt is the right function? i have the following things with me:- 1) Pointer to the object 2) coordinates of the window/object 3) hWnd -- modified at 1:12 Tuesday 1st August, 2006

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        SteamEngine wrote:

        delete a CStatic object

        How did you create that CStatic object? (using new) You can call DestroyWindow(),delete your pointer after this call. delete myObj;

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        1 Reply Last reply
        0
        • S SteamEngine

          how to delete a CStatic object present on the Client window? wt is the right function? i have the following things with me:- 1) Pointer to the object 2) coordinates of the window/object 3) hWnd -- modified at 1:12 Tuesday 1st August, 2006

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          You want to delete a cstatic object but what is it (2) how to create Cstatic?Whats application type? Is hWnd from CStatic

          _**


          **_

          WhiteSky


          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