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

  • Home
  • SEARCH
  • 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 45369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:47:53+00:00 2026-05-10T15:47:53+00:00

I am working on a legacy project in VC++/Win32/MFC . Recently it became a

  • 0

I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a tablet pc, and this ushered in a host of new issues. I have been able to work with, and around these issues, but am left with one wherein I could use some expert suggestions.

I have a particular bug that is induced by the ‘lift’ of the stylus off of the active surface. Basically the mouse cursor disappears and then reappears when you ‘press’ it back onto the screen.

It makes sense that this is unaccounted for in the application. you can’t lift the cursor on a desktop pc. So what I am looking for is a good overview on what happens (in terms of windows messages, etc.) when the lift occurs. Does this translate to just focus changes and mouseover events? My bug seems to also involve cursor changes (may not be lift related though). Certainly the unexpected ‘lift’ is breaking the state of the application’s tool processing.

So the tangible questions are:

  1. What happens when a stylus ‘lift’ occurs? A press?
  2. What API calls can be used to detect this? Does it just translate into standard messages with flags/values set?
  3. Whats a good way to test/emulate this when your development pc is a desktop? Am I just flying blind here? (I only have periodic access to a tablet pc)
  4. What represents correct behavior or best practice for tablet stylus awareness?

Thanks for your consideration, ee

  • 1 1 Answer
  • 1 View
  • 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-10T15:47:54+00:00Added an answer on May 10, 2026 at 3:47 pm

    As a tablet user I can answer a few of your questions.

    First:

    You cannot very easily keep a ‘keyboard focus’ on a window when the stylus has to trail out of the focused window to push a key on the virtual keyboard.

    Most of the virtual keyboards I’ve used (The windows tablet input panel and one under ubuntu) allow the program they are typing in to keep ‘keyboard focus.’

    What happens when a stylus ‘lift’ occurs? A press?

    Under Windows, the pressure value drops, but outside of that, there is no event. (I don’t know about linux.)

    What API calls can be used to detect this? Does it just translate into standard messages with flags/values set?

    As mentioned above, if you can get the pressure value, you can use that.

    Whats a good way to test/emulate this when your development pc is a desktop? Am I just flying blind here? (I only have periodic access to a tablet pc)

    When the stylus is placed down elsewhere, the global coordinates of the pointer change, so, you can emulate the sudden pointer move with anything that allows you to change the global pointer values. (The Robot class in Java makes this fairly easy.)

    What represents correct behavior or best practice for tablet stylus awareness?

    I’d recommend you read what Microsoft has to say, the MSDN website has a number of excellent articles. (http://msdn.microsoft.com/en-us/library/ms704849(VS.85).aspx) I’ll point out that the size of the buttons on your applications makes a HUGE difference.

    Hope this was of help.

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

Sidebar

Related Questions

I'm working on this legacy project that has a rather odd setup that I'm
I'm working on a legacy groovy project that uses jQuery's password strength validator plugin
I am working on a legacy application for a client, that uses Reporting Services.
appreciate any help with this. We are currently working on remodelling a legacy project
I'm working on a legacy COM C++ project that makes use of system hungarian
I'm working on a project that combines .NET with some legacy ASP code via
I'm working on a legacy project that has heavy use of Singletons. While most
I'm working on a recently mavenized legacy project with following multi-modular structure: Parent: Web
i`m working on the legacy project in VB6 with huge object all with public
I'm working on a legacy project. The database is poorly designed. I want to

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.