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. Other Discussions
  3. Article Writing
  4. Window position

Window position

Scheduled Pinned Locked Moved Article Writing
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.
  • G Offline
    G Offline
    Gary Hasman
    wrote on last edited by
    #1

    How do I get my application's main window to be on top? My splash screen pops up on top of any other currently open windows. BUT, when the appication opens its window, that always end up under all currently open windows. I used the wizard to create the application. I've looked at SetWindowPos which appears to be the function I need, but I'm not sure where it should be placed to induce the desired behavior. Would a simple entry in the .rc file do it?? Can it be done at all?? TIA... gary hasman gfhasman@go.com

    L 1 Reply Last reply
    0
    • G Gary Hasman

      How do I get my application's main window to be on top? My splash screen pops up on top of any other currently open windows. BUT, when the appication opens its window, that always end up under all currently open windows. I used the wizard to create the application. I've looked at SetWindowPos which appears to be the function I need, but I'm not sure where it should be placed to induce the desired behavior. Would a simple entry in the .rc file do it?? Can it be done at all?? TIA... gary hasman gfhasman@go.com

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      BringWindowToTop(...) SetWindowPos(HWND_NOTOPMOST,...) SetActiveWindow(...) All have their own caveats.

      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