Solved

Dialog Always On Top

Posted on 2004-08-05
2
315 Views
Last Modified: 2013-11-20
I am designing a Dialog application that is a test guide program to run while a user is doing the things instructed in the dialogs. Here is what I want. No matter what...I want this dialog to be in front of every window on the screen. The idea is that when the user goes to do something that the dialog instructs them to do...they can still read my dialog...it doesn't get lost behind the active window. Is there a way to do this???
0
Comment
Question by:SGyves
[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
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 11728366
inside your dialog's OnInitDialog() function, write:

SetWindowPos(&CWnd::wndTopMost, 0,0,0,0, SWP_NOSIZE|SWP_NOMOVE);

If OnInitDialog() function does not exist, create it with Class Wizard.
0
 
LVL 86

Expert Comment

by:jkr
ID: 11728392
Alternatively, set the 'WS_EX_TOPMOST' style in the dialog's resources.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

634 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