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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:33:17+00:00 2026-06-04T23:33:17+00:00

How come when I call the SetPixel function to set a pixel in iTunes,

  • 0

How come when I call the SetPixel function to set a pixel in iTunes, it does shows me the pixel in that specific application (like it should), whilst when calling the same function for Windows Media Player it doesn’t show at all. Also, this function doesn’t seem to work for fullscreen windows either. Why this great diversity? Any explanation would be greatly appreciated. Thanks in advance.

  • 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-04T23:33:19+00:00Added an answer on June 4, 2026 at 11:33 pm

    As mentioned, it’s very easy not to get the result you are expecting because it’s not your window, and you ultimately have no control over what it does!

    Two things you could do (one obviously being better than the other) are:

    • Use GetDC (NULL) to get a handle to the screen device context. Use ClientToScreen to calculate the position of your pixel on the screen. Call SetPixel with that handle. This will get cleared fairly quickly, though.

    • Create your own top-level, popup, transparent (to messages), layered window with an appropriate colour key. Use ClientToScreen to calculate the position of the screen, and possibly ScreenToClient to make sure it goes properly onto your window (which should theoretically have the same client dimensions as the screen). Draw the pixel onto your window and you will be in control of when it leaves.

    If using the second, your extended window style should be:

    WS_EX_TOPMOST | WS_EX_TRANSPARENT | WS_EX_LAYERED
    

    and your normal window style should be:

    WS_POPUP | WS_VISIBLE
    

    The dimensions can be found using GetSystemMetrics with the values SM_CXSCREEN and SM_CYSCREEN.

    To set the colour key, use SetLayeredWindowAttributes:

    SetLayeredWindowAttributes (hwnd, RGB (red, green, blue), 0, LWA_COLORKEY);
    

    Where red, green, and blue make up the background colour of your window, and should never appear as an actual colour. That way your background will not be drawn, giving an unnoticeable difference to the user, but when anything is drawn, it will show up.

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

Sidebar

Related Questions

is that possible to call Javascript function without supply all the parameters? I come
I'm iterating through an array of numbers that come through an API call: [6000,
Ok hopefully this come across correctly. I am building a universal javascript function that
Fatal error: Call to undefined function lcfirst() in C:\xampp\htdocs\allsides\others\basecontroller.php on line 9 How come
How come the first call to someMethod doesn't compile without being explicit that it's
I have an ajax call that come back from a request to the server
Why does this come back with an error: jQuery('#the_form').submit(function() { jQuery.ajax({ url: 'stats.php?increment=true', success:
Another problem I've come across is this one. I'm trying to call this function
In a C++ class, I need to call functions that come from a dynamically
I have come up with the following code to call a webservice using client/server

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.