Mercurial > dwindows
comparison template/dw.c @ 988:56077b50be7e
Reset line endings to LF from CRLF
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 07 May 2011 06:29:35 +0000 |
parents | 297f2e790e57 |
children | 870a95961b4a |
comparison
equal
deleted
inserted
replaced
987:297f2e790e57 | 988:56077b50be7e |
---|---|
369 | 369 |
370 #if 0 | 370 #if 0 |
371 /* Here you put your platform specific placement widget placement code */ | 371 /* Here you put your platform specific placement widget placement code */ |
372 PlaceWidget(handle, currentx + pad, currenty + pad, | 372 PlaceWidget(handle, currentx + pad, currenty + pad, |
373 width + vectorx, height + vectory); | 373 width + vectorx, height + vectory); |
374 | 374 |
375 /* If any special handling needs to be done... like diving into | 375 /* If any special handling needs to be done... like diving into |
376 * controls that have sub-layouts... like notebooks or splitbars... | 376 * controls that have sub-layouts... like notebooks or splitbars... |
377 * do that here. Figure out the sub-layout size and call _do_resize(). | 377 * do that here. Figure out the sub-layout size and call _do_resize(). |
378 */ | 378 */ |
379 #endif | 379 #endif |
380 | 380 |
381 if(thisbox->type == DW_HORZ) | 381 if(thisbox->type == DW_HORZ) |
382 currentx += width + vectorx + (pad * 2); | 382 currentx += width + vectorx + (pad * 2); |
383 if(thisbox->type == DW_VERT) | 383 if(thisbox->type == DW_VERT) |
384 currenty += height + vectory + (pad * 2); | 384 currenty += height + vectory + (pad * 2); |
387 } | 387 } |
388 return 0; | 388 return 0; |
389 } | 389 } |
390 | 390 |
391 /* This is a convenience function used in the window's resize event | 391 /* This is a convenience function used in the window's resize event |
392 * to relayout the controls in the window. | 392 * to relayout the controls in the window. |
393 */ | 393 */ |
394 void _do_resize(Box *thisbox, int x, int y) | 394 void _do_resize(Box *thisbox, int x, int y) |
395 { | 395 { |
396 if(x != 0 && y != 0) | 396 if(x != 0 && y != 0) |
397 { | 397 { |
730 | 730 |
731 /* Add the item to the box */ | 731 /* Add the item to the box */ |
732 #if 0 | 732 #if 0 |
733 /* Platform specific code to add item to box */ | 733 /* Platform specific code to add item to box */ |
734 BoxAdd(box, item); | 734 BoxAdd(box, item); |
735 #endif | 735 #endif |
736 | 736 |
737 /* Free the old data */ | 737 /* Free the old data */ |
738 if(thisbox->count) | 738 if(thisbox->count) |
739 free(thisitem); | 739 free(thisitem); |
740 } | 740 } |
800 | 800 |
801 /* Add the item to the box */ | 801 /* Add the item to the box */ |
802 #if 0 | 802 #if 0 |
803 /* Platform specific code to add item to box */ | 803 /* Platform specific code to add item to box */ |
804 BoxAdd(box, item); | 804 BoxAdd(box, item); |
805 #endif | 805 #endif |
806 | 806 |
807 /* Free the old data */ | 807 /* Free the old data */ |
808 if(thisbox->count) | 808 if(thisbox->count) |
809 free(thisitem); | 809 free(thisitem); |
810 } | 810 } |
1652 * Returns: | 1652 * Returns: |
1653 * A pointer to tree item data or NULL on failure. | 1653 * A pointer to tree item data or NULL on failure. |
1654 */ | 1654 */ |
1655 void * API dw_tree_item_get_data(HWND handle, HTREEITEM item) | 1655 void * API dw_tree_item_get_data(HWND handle, HTREEITEM item) |
1656 { | 1656 { |
1657 return NULL; | 1657 return NULL; |
1658 } | 1658 } |
1659 | 1659 |
1660 /* | 1660 /* |
1661 * Sets this item as the active selection. | 1661 * Sets this item as the active selection. |
1662 * Parameters: | 1662 * Parameters: |
2181 * Sets the transparent color for a pixmap | 2181 * Sets the transparent color for a pixmap |
2182 * Parameters: | 2182 * Parameters: |
2183 * pixmap: Handle to a pixmap returned by | 2183 * pixmap: Handle to a pixmap returned by |
2184 * dw_pixmap_new.. | 2184 * dw_pixmap_new.. |
2185 * color: transparent color | 2185 * color: transparent color |
2186 * Note: This is only necessary on platforms that | 2186 * Note: This is only necessary on platforms that |
2187 * don't handle transparency automatically | 2187 * don't handle transparency automatically |
2188 */ | 2188 */ |
2189 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color ) | 2189 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color ) |
2190 { | 2190 { |
2191 } | 2191 } |