01-13-2006, 06:22 PM
is there a way to change the cursor briefly? i'd like to do this as a visual cue that the macro went off.
Brief Cursor change
|
01-13-2006, 06:22 PM
is there a way to change the cursor briefly? i'd like to do this as a visual cue that the macro went off.
01-13-2006, 08:06 PM
I would try the following:
int hwnd=CreateWindowEx(0 "#32770" 0 ...) to create temporary window and make it active; SetCapture(hwnd) to capture the mouse; SetCursor(LoadCursor(0 IDC_WAIT)); wait; SetCapture(0); DestroyWindow(hwnd).
01-13-2006, 09:46 PM
hock:
WHEW!!! tried to make that work but couldn't fig out why i couldnt get the window to show up. Made some progress with MSDN's info but couldnt get there. then i realized osd baby!!! :oops:
01-13-2006, 10:58 PM
Quote:but couldn't fig out why i couldnt get the window to show up forgot opt waitmsg 1 before wait. Without this, WM_PAINT and some other messages are not received.
01-13-2006, 11:23 PM
Tested. Using this method (SetCapture/SetCursor), cursor is changed only over that window or if mouse left button is pressed. Don't know other methods.
|
« Next Oldest | Next Newest »
|