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. how to find out what time a control is created and VISIBLE?

how to find out what time a control is created and VISIBLE?

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

    as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?

    Thank you masters!

    D I J 3 Replies Last reply
    0
    • J Joseph Marzbani

      as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?

      Thank you masters!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Jusef Marzbany wrote:

      is there a way (e.g a special message) to fine out when a child window is create and visible?

      What about IsWindowVisible()?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      1 Reply Last reply
      0
      • J Joseph Marzbani

        as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?

        Thank you masters!

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        Have a look at WM_NCPAINT, or WM_WINDOWPOSCHANGING - the first will be the first hint of drawing to the screen, and the 2nd may be handy if you look at the fine detail of the changes being made. Iain.

        In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

        J 1 Reply Last reply
        0
        • I Iain Clarke Warrior Programmer

          Have a look at WM_NCPAINT, or WM_WINDOWPOSCHANGING - the first will be the first hint of drawing to the screen, and the 2nd may be handy if you look at the fine detail of the changes being made. Iain.

          In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

          J Offline
          J Offline
          Joseph Marzbani
          wrote on last edited by
          #4

          good idea! thnx...:thumbsup:

          1 Reply Last reply
          0
          • J Joseph Marzbani

            as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?

            Thank you masters!

            J Offline
            J Offline
            Jijo Raj
            wrote on last edited by
            #5

            Is this helpful - Waiting until the dialog box is displayed before doing something.[^] You can easly modify that for your control. Regards, Jijo.

            _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

            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