Solved

Refresh Problem

Posted on 2002-05-02
3
206 Views
Last Modified: 2013-11-20
Hi,

I have two controls in my application which are placed on a dialog. One is standard control and the other one is custom control.

I would like to have custom control to be always on the top. I have already tried with BringWindowToTop but doesn't seem to work. Can any one help me with this?

Regards,
Chutki.
0
Comment
Question by:Chutki
[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
3 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 50 total points
ID: 6986070
Hi Chutki,

set control to be on top:
pWndCustom->SetWindowPos( &wndTop, 0, 0, 0, 0, SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE );

Maybe you need to assign the WS_CLIPSIBLINGS to the other control to avoid the overlapping part of the
custom control is 'overpainted' with the underlying one...

hope that helps,

ZOPPO
0
 

Author Comment

by:Chutki
ID: 6989606
Thanks Zoppo. This worked.
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 6993432
That's fine.

Have a nice day,

regards,

ZOPPO
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

729 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