Solved

Refresh Problem

Posted on 2002-05-02
3
178 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

23 Experts available now in Live!

Get 1:1 Help Now