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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:06:35+00:00 2026-06-17T12:06:35+00:00

I want to make an app that shows itself when the user touches his

  • 0

I want to make an app that shows itself when the user touches his screen. It shouldn’t work for click. I looked up for the touch hanlders in Windows 7/8. But I saw that every touch window must be registered with RegisterTouchWindow

TL;DR

Is there a way to get the touch points position outside my window (globally)?

  • 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-06-17T12:06:36+00:00Added an answer on June 17, 2026 at 12:06 pm

    RegisterTouchWindow is not necessary for Win 8 apps any more.

    As far as I known, there are several ways to achieve your purpose with some limitations.

    1. This article here works on both Win 7 & 8. But the vendor ID and the product ID of the touchscreen is required. There is a possibility that your application won’t work properly with some touch device.

    2. Use RegisterPointerInputTarget on Win 8. From my debugging, the windows 8 touch mechanism has its unique characteristics. Between a touch down and a touch up, all the touch events will be sent to the window which receives the first touch event, no matter the window is minimized or covered by another window or set WS_EX_TRANSPARENT attribute in its later period. The touch events between one pressing and releasing can only be shared to another window if the first one is destroyed. Using this API, all the touch events will be sent to the registered window. Other windows cannot receive touch events any more until UnregisterPointerInputTarget is called by the registered window, or the touch input is injected back into the system by using InjectTouchInput. “Input injected by the registered input target will not be intercepted.” Please notice that UI Access privilege is required for using this API. A sample can be found in here.

    3. Windows hook. For desktop app on Win 7/8, touch events can be easily hooked by using SetWindowsHookEx with WH_CALLWNDPROC or WH_GETMESSAGE. For metro app on Win 8, only the first pointer event can be detected in the message loop of the window. Although a pointer event can be occurred by either a click or a tap, GetPointerType can tell you if its a touch pointer or a mouse pointer. Samples for using hooks can be found at here.

    A code snippet for handling pointer events:

    switch(Msg)  
    {  
    ...  
    case WM_POINTERENTER:  
    case WM_NCPOINTERDOWN:  
    case WM_NCPOINTERUP:  
    case WM_NCPOINTERUPDATE:  
    case WM_POINTERACTIVATE:  
    case WM_POINTERCAPTURECHANGED:  
    case WM_POINTERDOWN:  
    case WM_POINTERLEAVE:  
    case WM_POINTERUP:  
    case WM_POINTERUPDATE:  
        {  
            UINT32 pointerId = GET_POINTERID_WPARAM(wParam);  
            POINTER_INPUT_TYPE pointerType;  
    
            if (GetPointerType(pointerId, &pointerType))  
            {
                if (pointerType == PT_TOUCH)   
                {  
                    ...  
                }  
            }  
        }  
        break;  
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make an app that shows where is a location on screen.
I want to make an app which shows cardio graph in real time. That
I want to make an iPhone app that shows many greeting cards, I like
I want to make a simple app that shows a list of contacts (name,
I want to make app that shows Springboard like SBSetting on Cydia. It is
I want to make a fullscreen app that shows the background of the new
I want to make an app that has a view that moves randomly or
I want to make an app that can receive broadcast when other apps on
i want to make a php app that let people submit photos/videos/sounds Now, everything
I want to make a little tk app that continuous ping an ip and

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.