• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

Refresh Problem

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
Chutki
Asked:
Chutki
  • 2
1 Solution
 
ZoppoCommented:
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
 
ChutkiAuthor Commented:
Thanks Zoppo. This worked.
0
 
ZoppoCommented:
That's fine.

Have a nice day,

regards,

ZOPPO
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now