Hello, I have problems changing the cursor over a single edit control. I'm using 'SetClassLong' to apply the new cursor over an edit:
Code:
HWND h_disp;//declared as global
void crea_display(HWND hwnd)
{
HCURSOR hc;
h_disp=CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT","",WS_CHILD|WS_VISIBLE|WS_VSCROLL|ES_AUTOVSCROLL|ES_READONLY|
ES_WANTRETURN|ES_MULTILINE,0,0,0,0,hwnd,NULL,GetModuleHandle(0),NULL);
SendMessage(h_tracer,WM_SETFONT,(WPARAM)hf2,(LPARAM)MAKELPARAM(TRUE,0));
hc=LoadCursor(NULL,IDC_NO);
SetClassLong(h_disp,GCL_HCURSOR,(LONG)hc);
}
The idea is to set the IDC_ARROW cursor, but for testing purposes I have used the slashed circle. It works well over that 'h_disp' control, the problem is that also is displayed over all other edit controls of the window (even on all the edit controls attached to dialogs).
It is possible to set a cursor for a single control?
Thank's in advance
Niara