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