comparison os2/dw.c @ 2532:457c91634881

Added dw_window_compare() to check if two window handles refer to the same object. Most platforms just compare the pointer or handle, but Android uses IsSameObject().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 11 May 2021 05:00:07 +0000
parents fa976a5bc7bd
children 2acc7ba5dea0
comparison
equal deleted inserted replaced
2531:f45ebd96ebe5 2532:457c91634881
13497 } 13497 }
13498 return NULL; 13498 return NULL;
13499 } 13499 }
13500 13500
13501 /* 13501 /*
13502 * Compare two window handles.
13503 * Parameters:
13504 * window1: First window handle to compare.
13505 * window2: Second window handle to compare.
13506 * Returns:
13507 * TRUE if the windows are the same object, FALSE if not.
13508 */
13509 int API dw_window_compare(HWND window1, HWND window2)
13510 {
13511 /* If anything special is require to compare... do it
13512 * here otherwise just compare the handles.
13513 */
13514 if(window1 && window2 && window1 == window2)
13515 return TRUE;
13516 return FALSE;
13517 }
13518
13519 /*
13502 * Add a callback to a timer event. 13520 * Add a callback to a timer event.
13503 * Parameters: 13521 * Parameters:
13504 * interval: Milliseconds to delay between calls. 13522 * interval: Milliseconds to delay between calls.
13505 * sigfunc: The pointer to the function to be used as the callback. 13523 * sigfunc: The pointer to the function to be used as the callback.
13506 * data: User data to be passed to the handler function. 13524 * data: User data to be passed to the handler function.