How to set custom cursor overall in my SDI ?

Hi .. any help how to set my custom cursor over the entire project ?
I have lots of static controls buttons and widows... and i just want to use overall the same cursor I load for the entire SDI.
here is where I load my cursor:

1
2
3
4
5
6
7
8
9
10
11
12
13
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR args, int nCmdShow)
{
    InitCommonControls();

    WNDCLASSW wc = {0};

    wc.hbrBackground    = (HBRUSH)(COLOR_WINDOW);
    wc.hCursor          = (HCURSOR)LoadImage(GetModuleHandle(NULL),
                          MAKEINTRESOURCE(IDC_CURSOR), IMAGE_CURSOR, 16, 16, 0);
..
...
....
}

and the cursor load from the resources.
The point is that if I pass over a control or just over the frame, the cursor changes to the default windows cursor I have set from the system.
I know there is a WM_SETCURSOR.. but how do I handle this ..?
Last edited on
Topic archived. No new replies allowed.