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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Child Dialog flashes and hides.

Child Dialog flashes and hides.

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasecom
3 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.
  • C Offline
    C Offline
    Chandrasekharan P
    wrote on last edited by
    #1

    I have a dialog based application where there are 20 dialogs. Now certain dialogs are Modeless dialogs. On that, one dialog has some ActiveX Control. On OnInitDialog() of the parent dialog I used the Create() to create the child dialog and i am hiding it initially and calling this child dialog at a later use. but when i am calling the parent dialog from another dialog the child dialog flashes and hides away. How can i avoid it? I hope the query is clear

    N 1 Reply Last reply
    0
    • C Chandrasekharan P

      I have a dialog based application where there are 20 dialogs. Now certain dialogs are Modeless dialogs. On that, one dialog has some ActiveX Control. On OnInitDialog() of the parent dialog I used the Create() to create the child dialog and i am hiding it initially and calling this child dialog at a later use. but when i am calling the parent dialog from another dialog the child dialog flashes and hides away. How can i avoid it? I hope the query is clear

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      Chandru080 wrote:

      On OnInitDialog() of the parent dialog I used the Create() to create the child dialog and i am hiding it initially and calling this child dialog at a later use

      Remove the visible(WS_VISIBLE) style of the child dialog and try again....

      nave [OpenedFileFinder] [My Blog]

      C 1 Reply Last reply
      0
      • N Naveen

        Chandru080 wrote:

        On OnInitDialog() of the parent dialog I used the Create() to create the child dialog and i am hiding it initially and calling this child dialog at a later use

        Remove the visible(WS_VISIBLE) style of the child dialog and try again....

        nave [OpenedFileFinder] [My Blog]

        C Offline
        C Offline
        Chandrasekharan P
        wrote on last edited by
        #3

        My 5. thanks Naveen.. It was a simple mistake and i was checking this error for more than an hour. thanks again

        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