Mercurial > dwindows
comparison dwtest.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 | 5f92284e2b08 |
children | bb75e64e6138 |
comparison
equal
deleted
inserted
replaced
2531:f45ebd96ebe5 | 2532:457c91634881 |
---|---|
272 if(render_type != SHAPES_DIRECT) | 272 if(render_type != SHAPES_DIRECT) |
273 { | 273 { |
274 HPIXMAP hpm; | 274 HPIXMAP hpm; |
275 unsigned long width,height; | 275 unsigned long width,height; |
276 | 276 |
277 if (hwnd == textbox1) | 277 if(dw_window_compare(hwnd, textbox1)) |
278 hpm = text1pm; | 278 hpm = text1pm; |
279 else if(hwnd == textbox2) | 279 else if(dw_window_compare(hwnd, textbox2)) |
280 hpm = text2pm; | 280 hpm = text2pm; |
281 else | 281 else |
282 return TRUE; | 282 return TRUE; |
283 | 283 |
284 width = (int)DW_PIXMAP_WIDTH(hpm); | 284 width = (int)DW_PIXMAP_WIDTH(hpm); |