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. Dialog windows

Dialog windows

Scheduled Pinned Locked Moved C / C++ / MFC
csharpcomgraphicstutorialquestion
2 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.
  • J Offline
    J Offline
    Jason Hooper
    wrote on last edited by
    #1

    I have a small dialog window that is a child of my parent dialog. It has the topmost window style set so I can be doing things in other windows and have my small child window of my app still visible on top of everything. When I click on the title bar to move it around the screen, upon releasing the mouse button, the parent dialog box pops up to right under the child dialog. This isn't the behaviour I'm desiring (I'd like to be able to move the child window around without seeing the parent, but I'm not sure how to get around it, or what to do. Any ideas? Also, i'm taking a plain dialog resource for it (no controls), and in my OnPaint function for that dialog, calling GetClientRect() and drawing right to that rect. Is this wise? - Jason (SonorkID 100.611) The Code Project - Orange makes the art grow fonder

    D 1 Reply Last reply
    0
    • J Jason Hooper

      I have a small dialog window that is a child of my parent dialog. It has the topmost window style set so I can be doing things in other windows and have my small child window of my app still visible on top of everything. When I click on the title bar to move it around the screen, upon releasing the mouse button, the parent dialog box pops up to right under the child dialog. This isn't the behaviour I'm desiring (I'd like to be able to move the child window around without seeing the parent, but I'm not sure how to get around it, or what to do. Any ideas? Also, i'm taking a plain dialog resource for it (no controls), and in my OnPaint function for that dialog, calling GetClientRect() and drawing right to that rect. Is this wise? - Jason (SonorkID 100.611) The Code Project - Orange makes the art grow fonder

      D Offline
      D Offline
      DanielO
      wrote on last edited by
      #2

      hu? CParentDlg::ShowChild() { dialog dlg ShowWindow(SW_HIDE) if( dlg.DoModal()== IDOK) { //bla bla } ShowWindow(SW_SHOW) -Drawing on that plain dlg that OnPaint (WM_DRAW) message should do no harm Daniel O

      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