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 on top of another application [modified]

Dialog on top of another application [modified]

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

    we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden. Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back). Please suggest me how can I handle such situation

    modified on Monday, January 12, 2009 1:25 AM

    H I 2 Replies Last reply
    0
    • S Super Hornet

      we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden. Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back). Please suggest me how can I handle such situation

      modified on Monday, January 12, 2009 1:25 AM

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

      You can use of this code SetWindowPos(&hwndTopmost, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOZORDER); but for more info see Makes any windows "Always On Top"[^] Keep your Window Always On Top[^].

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      1 Reply Last reply
      0
      • S Super Hornet

        we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden. Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back). Please suggest me how can I handle such situation

        modified on Monday, January 12, 2009 1:25 AM

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

        Hamid has a good idea. Another alternative is to make B.exe create a full screen, but transparent window - then have CBDlg be a child of that. Lastly - assuming you're creating both of these applications, you could called B.exe with a parent that can be decoded into a window handle which you then use as the parent window for B.exe. This is how screen savers work - no parameter means full screen saving. Control panel calls them with various parameters for preview, draw in little window or configuration dialog box - all with a window handle passed as a parameter. Iain.

        Codeproject MVP for C++, I can't believe it's for my lounge posts...

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

          Hamid has a good idea. Another alternative is to make B.exe create a full screen, but transparent window - then have CBDlg be a child of that. Lastly - assuming you're creating both of these applications, you could called B.exe with a parent that can be decoded into a window handle which you then use as the parent window for B.exe. This is how screen savers work - no parameter means full screen saving. Control panel calls them with various parameters for preview, draw in little window or configuration dialog box - all with a window handle passed as a parameter. Iain.

          Codeproject MVP for C++, I can't believe it's for my lounge posts...

          S Offline
          S Offline
          Super Hornet
          wrote on last edited by
          #4

          Thank you

          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