[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Refresh Problem

Posted on 2002-05-02
3
Medium Priority
?
218 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 200 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

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

656 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