Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Always on top

Posted on 2000-04-11
5
Medium Priority
?
212 Views
Last Modified: 2013-11-20
I have an SDI application.  I need to make the application stay "always on top".  I can do this with dialogs in an application, or the child windows of a MDI app.  This seems to be very similar to the Task Manager, always on top option.

Thanks in advance.
kev
0
Comment
Question by:SweetLeaf
  • 3
5 Comments
 
LVL 5

Accepted Solution

by:
Wyn earned 300 total points
ID: 2704370
Call SetWindowPos() on which window you wanna it to be topmost with wndTopMost  as the first parameter...

Free to ask...
Regards
W.Yinan
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2704380
Or you can creat it by specifying WM_EX_TOPMOST attr...
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2704387
For the later,you'd use CreateEx()...
0
 

Expert Comment

by:wytze
ID: 2704446
m_pMainWnd->SetWindowPosition(HWND_TOPMOST,X,Y,width,heigth,Flags);

m_pMainWnd is global variable in every SDI application.
0
 

Author Comment

by:SweetLeaf
ID: 2704503
This seems to work.

Thanks,
kev
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Screencast - Getting to Know the Pipeline
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question