Solved

Refresh Problem

Posted on 2002-05-02
3
164 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
  • 2
3 Comments
 
LVL 30

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 30

Expert Comment

by:Zoppo
ID: 6993432
That's fine.

Have a nice day,

regards,

ZOPPO
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now