Mercurial > dwindows
comparison template/dw.c @ 1667:9dbd2984c1e5
Initial implementation of dw_box_remove() and dw_box_remove_at_index()
for OS/2, Windows and template. Mac and GTK2/3 versions coming soon.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 26 Apr 2012 20:33:39 +0000 |
parents | 4a9c574d5c17 |
children | 36a090da4cb1 |
comparison
equal
deleted
inserted
replaced
1666:df25fee81502 | 1667:9dbd2984c1e5 |
---|---|
594 if(thisbox->count) | 594 if(thisbox->count) |
595 free(thisitem); | 595 free(thisitem); |
596 } | 596 } |
597 | 597 |
598 /* | 598 /* |
599 * Remove windows (widgets) from the box they are packed into. | |
600 * Parameters: | |
601 * handle: Window handle of the item to be back. | |
602 * Returns: | |
603 * DW_ERROR_NONE on success and DW_ERROR_GENERAL on failure. | |
604 */ | |
605 int API dw_box_remove(HWND handle) | |
606 { | |
607 return DW_ERROR_GENERAL; | |
608 } | |
609 | |
610 /* | |
611 * Remove windows (widgets) from a box at an arbitrary location. | |
612 * Parameters: | |
613 * box: Window handle of the box to be removed from. | |
614 * index: 0 based index of packed items. | |
615 * Returns: | |
616 * Handle to the removed item on success, 0 on failure. | |
617 */ | |
618 HWND API dw_box_remove_at_index(HWND box, int index) | |
619 { | |
620 return DW_ERROR_GENERAL; | |
621 } | |
622 | |
623 /* | |
599 * Pack windows (widgets) into a box at an arbitrary location. | 624 * Pack windows (widgets) into a box at an arbitrary location. |
600 * Parameters: | 625 * Parameters: |
601 * box: Window handle of the box to be packed into. | 626 * box: Window handle of the box to be packed into. |
602 * item: Window handle of the item to be back. | 627 * item: Window handle of the item to be back. |
603 * index: 0 based index of packed items. | 628 * index: 0 based index of packed items. |