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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:45:32+00:00 2026-05-10T18:45:32+00:00

In almost any Windows application, I notice that holding the mouse button down in

  • 0

In almost any Windows application, I notice that holding the mouse button down in a non-client area causes the painting to stop. Why is this required?

For example, I have a Managed Direct 3D application which displays a spinning cube. If I place the pointer over the title bar and hold the mouse button down, the cube ceases to spin even though I have not coded any such condition into my loop.

Why is painting halted? What are the benefits? Most importantly, how can I work around this?

  • 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. 2026-05-10T18:45:33+00:00Added an answer on May 10, 2026 at 6:45 pm

    When you click on the title bar, there’s a brief pause while the window manager tries to determine whether or not you’re clicking or beginning a drag (moving the window). If you’re still holding down the button, then it’s a drag: the window manager sets up its own message loop and pumps messages until you release the mouse. Your window should still be able to process messages, because they’ll still be dispatched, but if your animation depends on a custom message loop then you’ll be stuck ’till the modal drag loop ends.

    Work around it by triggering your animation in response to messages: a timer seems like a good choice to me.

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

Sidebar

Related Questions

Almost any mature program that involves text implements double click to select the word
Almost every Python web framework has a simple server that runs a wsgi application
I'm working on an application that runs on Windows Mobile 6 that needs to
I'm developing non-interactive cpu-bound application which does only computations, almost no IO. Currently it
C# and Java allow almost any character in class names, method names, local variables,
When I use NetBeans for almost any task (in particular, attempting to open a
The string formatting concept found in sprintf can be found in almost any language
Given any iterable, for example: ABCDEF Treating it almost like a numeral system as
I'm trying this for almost two hours now, without any luck. I have a
Let's create WinForms Application (I have Visual Studio 2008 running on Windows Vista, but

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.