Solved

Always on top

Posted on 2000-04-11
5
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

734 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