Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 637981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:40:58+00:00 2026-05-13T20:40:58+00:00

I have a Windows box that is running three applications. When the applications are

  • 0

I have a Windows box that is running three applications. When the applications are started each application creates a borderless window which is positioned such that they overlap in a particular way.

At the moment, when I click on a control on the bottom window, it comes to the top of the window stack.

I need to ensure that each window keeps its order in the window stack even if a window receives input.

I am thinking I need to write some sort of simple window manager that will maintain the correct Z-order of the windows.

The problem is, I need to know if a particular window has changed position. I have found that there is a WM_WINDOWPOSCHANGING message but my understanding is that this message is send to the window whose position has changed.

I need my window manager application to be somehow notified that the Z-order has changed.

Is there some way I can catch all WM_ messages and determine if the message applies to one of the windows I wish to control?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:40:58+00:00Added an answer on May 13, 2026 at 8:40 pm

    Instead of MSalter’s approach trying to DLL injection into each of the running the application, consider installing a WH_CBT Windows hook. In your CBTProc, return 0 when you get a HCBT_MOVESIZE for the three application window handles you care about.

    Read MSDN for the docs on CBTProc and SetWindowsHookEx.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a combo box in a C# Windows form application that is being
I'm using Visual SVN on my Windows Box. I have Repository Application , which
I have a Windows Forms application that when the Main Window is closing, it
I have a JInternalFrame window that needs to popup a modal dialog box when
I have a windows box and a VM running CentOS. Does anyone happen to
I have SVN running on my main windows development box on my home network.
I have an application where the System.Windows.Forms.ColorDialog dialog box is used as a color
I am running windows 7 and have installed an Ubuntu machine using virtual box.
I have SQL server running on a legacy Windows 2003 box on IP address
We have a (non-web app) Spring application that throws a NoSuchBeanDefinitionException when running tests

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.