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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:54:20+00:00 2026-06-07T11:54:20+00:00

I registered a custom button in WM_CREATE but my custom cursor resource is not

  • 0

I registered a custom button in WM_CREATE but my custom cursor resource is not recognized and I am getting a double arrow cursor when hovering over the custom buttons that I create at run time. Any solutions? I have included resource.h and triplechecked that the custom resource with IC_CURSOR2 is there in the resources.

        WNDCLASSEX buttonx; //subclass our custom buttons
        buttonx.cbSize = sizeof(WNDCLASSEX);
        GetClassInfoEx(NULL,TEXT("BUTTON"), &buttonx);
        buttonx.lpszClassName = "CustomButton";
        buttonx.hInstance = hInst;
        buttonx.hCursor = LoadCursor(hInst, MAKEINTRESOURCE(IDC_CURSOR2));
        RegisterClassEx(&buttonx);

        hButton1 = CreateWindowEx(NULL, "CustomButton", "Close", WS_CHILD 
            | WS_VISIBLE | BS_OWNERDRAW, 410, 570, 100, 30, hWnd, 
            (HMENU)ID_BUTTON1, g_hInstance, NULL);
  • 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-07T11:54:22+00:00Added an answer on June 7, 2026 at 11:54 am

    I am getting a double arrow cursor

    That sounds like one of the stock cursors, like IDC_SIZENS. Which indicates that you hInst variable is NULL. Maybe you should have used g_hInstance, it isn’t clear from the question.

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

Sidebar

Related Questions

I need a button that is visually completely customizable, but has custom logic to
I've created custom column(DataGridViewButtonControlColumn) and cell(ButtonControlCell) classes to hold System.Windows.Forms.Button controls. The buttons get
I'm having a problem with custom buttons in jquery mobile. <li><a href=about.php>Button</a></li> I want
I'm developing a web application which is required to call a custom registered protocol
In a VS Package (Visual Studio Extensibility), I have a custom extension registered (for
I have multiple custom controls used on a ASPX (and C#) page registered from
I'm writing a custom admin stuff and need to get all registered models in
I'm developing a custom module for my Magento installation (version 1.6.2.0). I registered a
I am not using a dialog, I'm using my own custom class which I
I have a custom button which inherits from UIButton. I'm handling the TouchUpInside event

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.