Mercurial > dwindows
comparison template/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 |
---|---|
3102 { | 3102 { |
3103 return NULL; | 3103 return NULL; |
3104 } | 3104 } |
3105 | 3105 |
3106 /* | 3106 /* |
3107 * Compare two window handles. | |
3108 * Parameters: | |
3109 * window1: First window handle to compare. | |
3110 * window2: Second window handle to compare. | |
3111 * Returns: | |
3112 * TRUE if the windows are the same object, FALSE if not. | |
3113 */ | |
3114 int API dw_window_compare(HWND window1, HWND window2) | |
3115 { | |
3116 /* If anything special is require to compare... do it | |
3117 * here otherwise just compare the handles. | |
3118 */ | |
3119 if(window1 && window2 && window1 == window2) | |
3120 return TRUE; | |
3121 return FALSE; | |
3122 } | |
3123 | |
3124 /* | |
3107 * Add a callback to a timer event. | 3125 * Add a callback to a timer event. |
3108 * Parameters: | 3126 * Parameters: |
3109 * interval: Milliseconds to delay between calls. | 3127 * interval: Milliseconds to delay between calls. |
3110 * sigfunc: The pointer to the function to be used as the callback. | 3128 * sigfunc: The pointer to the function to be used as the callback. |
3111 * data: User data to be passed to the handler function. | 3129 * data: User data to be passed to the handler function. |