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 1037271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:49:59+00:00 2026-05-16T14:49:59+00:00

I noticed that the message WM_NCHitTest isn’t sent to a form when the cursor

  • 0

I noticed that the message WM_NCHitTest isn’t sent to a form when the cursor is inside the caption bar (not on the border).

I tried to intercept it using either

procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST;

or

procedure WndProc(var Message: TMessage); override;

According to MSDN I was expecting to receive it for any point, with no blind spots.

Did I miss something or this is the intended behaviour?

I’m using Delphi 2010 on Windows 7, with Aero on.

  • 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-16T14:49:59+00:00Added an answer on May 16, 2026 at 2:49 pm

    Yes — that’s expected. Unless you disable the DWM, you won’t get WM_NCHITTEST messages when the cursor is in the title bar. Basically, when the DWM is on, the title bar “belongs” to the DWM, not your application.

    If you really need those messages, you can disable the DWM — but keep in mind that when/if you do this, it does not just disable it for your application. If you disable it, it’s disabled for the whole system (until it’s re-enabled again, of course).

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

Sidebar

Related Questions

I'm intercepting server response via datatype, but I've noticed that the loading.. message is
I noticed that almost all email messages I get do not embed images, but
Notice how StackOverflow displays some nice Status Bar message based on your activity? (That
i noticed that paypal displays a very different favicon, one that's not just a
I have a UIView subclass that overrides UIResponder's touchesMoved: message. I've noticed that when
I noticed that messages sent to the pid of a gen_fsm process are matched
I've noticed that AutoResetEvent completely freezes the message loop (sometimes) when in the middle
I have just noticed that Sql Profiler 2008 is not hiding trace outputs that
I have noticed that some of my ajax-heavy sites (ones I visit, not ones
I noticed that there is a package repo for Clojure, so I tried sudo

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.