Solved

Always on top

Posted on 2000-04-11
5
205 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 100 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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