Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

make topmost dialog

Posted on 1999-07-03
1
Medium Priority
?
1,026 Views
Last Modified: 2013-11-20
hi everybody
  I use vc++5  . In my program I would like to set my Dialog that  open from event idle time ( use DoModal() to open it ) to topmost . Actually when
I open dialog with DoModal() dialog will stay on topmost but when I open it from Idle time , it not stay on topmost . please advise me to do it.
thank you
eakkung
aek

 
0
Comment
Question by:eakkung
[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
1 Comment
 
LVL 8

Accepted Solution

by:
trestan earned 120 total points
ID: 1308737
Add a message handler for WM_CREATE in your dialog window and add the following under the handler:
      SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOREPOSITION|SWP_NOSIZE);

Then your dialog will stay on topmost.
I check your rate history and found that all are 'C' except one 'B'. I guess you never rate the answers others provided. I suggest you do that because it will benefit both other people and yourself also.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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: 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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

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