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. BringWindowToTop

BringWindowToTop

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncementworkspace
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
    Chris Klecker
    wrote on last edited by
    #1

    Hey hey hey! I'm trying to run the function BringWindowToTop. Finding that it's not working the way I intended. I have this function in the Update method within the View Class. I call it from the MainFrame class. Here's the setup. I have a file list view docked in the main application window that a user can click on existing opened files. They click on a file and the window should come to front. I am finding the right document and calling the proper View class from the document, however it seems the BringWindowToFront is not Brining the Window To the Top. (sorry) Might there be more that one needs to do in order to successfully get the effect I'm looking for? Thanks! :confused: "Why are we hiding from the police, Daddy?" "We use VI, son. They use Emacs."

    P 1 Reply Last reply
    0
    • C Chris Klecker

      Hey hey hey! I'm trying to run the function BringWindowToTop. Finding that it's not working the way I intended. I have this function in the Update method within the View Class. I call it from the MainFrame class. Here's the setup. I have a file list view docked in the main application window that a user can click on existing opened files. They click on a file and the window should come to front. I am finding the right document and calling the proper View class from the document, however it seems the BringWindowToFront is not Brining the Window To the Top. (sorry) Might there be more that one needs to do in order to successfully get the effect I'm looking for? Thanks! :confused: "Why are we hiding from the police, Daddy?" "We use VI, son. They use Emacs."

      P Offline
      P Offline
      Paolo Messina
      wrote on last edited by
      #2

      Hi, A View window is a child window of its parent frame. I think you should call BringWindowToTop to the frame, not the view. Something like:

      wndMyView->GetParent()->BringWindowToTop();

      Not sure, however. :) Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)

      C 1 Reply Last reply
      0
      • P Paolo Messina

        Hi, A View window is a child window of its parent frame. I think you should call BringWindowToTop to the frame, not the view. Something like:

        wndMyView->GetParent()->BringWindowToTop();

        Not sure, however. :) Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)

        C Offline
        C Offline
        Chris Klecker
        wrote on last edited by
        #3

        I found my older code on this where I write GetParentFrame()->BringWindowToTop(); I knew I wrote this sometime. =) Thanks for the help though! Chris "Why are we hiding from the police, Daddy?" "We use VI, son. They use Emacs."

        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