Solved

Always on top

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now