Mercurial > dwindows
comparison os2/dw.c @ 310:77105fe19c1f
Removed obsolete dw_container_set_view() function.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 31 Mar 2003 09:18:00 +0000 |
parents | 324587c06cea |
children | 24c1dfffe97e |
comparison
equal
deleted
inserted
replaced
309:49047a8787cb | 310:77105fe19c1f |
---|---|
3906 void API dw_pointer_set_pos(long x, long y) | 3906 void API dw_pointer_set_pos(long x, long y) |
3907 { | 3907 { |
3908 WinSetPointerPos(HWND_DESKTOP, x, dw_screen_height() - y); | 3908 WinSetPointerPos(HWND_DESKTOP, x, dw_screen_height() - y); |
3909 } | 3909 } |
3910 | 3910 |
3911 | |
3911 /* | 3912 /* |
3912 * Create a container object to be packed. | 3913 * Create a container object to be packed. |
3913 * Parameters: | 3914 * Parameters: |
3914 * id: An ID to be used for getting the resource from the | 3915 * id: An ID to be used for getting the resource from the |
3915 * resource file. | 3916 * resource file. |
5882 cnri.xVertSplitbar = 150; | 5883 cnri.xVertSplitbar = 150; |
5883 | 5884 |
5884 WinSendMsg(handle, CM_SETCNRINFO, MPFROMP(&cnri), MPFROMLONG(CMA_PFIELDINFOLAST | CMA_XVERTSPLITBAR)); | 5885 WinSendMsg(handle, CM_SETCNRINFO, MPFROMP(&cnri), MPFROMLONG(CMA_PFIELDINFOLAST | CMA_XVERTSPLITBAR)); |
5885 } | 5886 } |
5886 | 5887 |
5888 cnri.flWindowAttr = CV_DETAIL | CV_MINI | CA_DETAILSVIEWTITLES; | |
5889 cnri.slBitmapOrIcon.cx = 16; | |
5890 cnri.slBitmapOrIcon.cy = 16; | |
5891 | |
5892 WinSendMsg(handle, CM_SETCNRINFO, &cnri, MPFROMLONG(CMA_FLWINDOWATTR | CMA_SLBITMAPORICON)); | |
5893 | |
5887 free(offStruct); | 5894 free(offStruct); |
5888 return TRUE; | 5895 return TRUE; |
5889 } | 5896 } |
5890 | 5897 |
5891 /* | 5898 /* |
6334 break; | 6341 break; |
6335 case DW_SCROLL_BOTTOM: | 6342 case DW_SCROLL_BOTTOM: |
6336 WinSendMsg(handle, CM_SCROLLWINDOW, MPFROMSHORT(CMA_VERTICAL), MPFROMLONG(10000000)); | 6343 WinSendMsg(handle, CM_SCROLLWINDOW, MPFROMSHORT(CMA_VERTICAL), MPFROMLONG(10000000)); |
6337 break; | 6344 break; |
6338 } | 6345 } |
6339 } | |
6340 | |
6341 /* | |
6342 * Removes all rows from a container. | |
6343 * Parameters: | |
6344 * handle: Handle to the window (widget) to be cleared. | |
6345 */ | |
6346 void API dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight) | |
6347 { | |
6348 CNRINFO cnrinfo; | |
6349 | |
6350 cnrinfo.flWindowAttr = flags; | |
6351 cnrinfo.slBitmapOrIcon.cx = iconwidth; | |
6352 cnrinfo.slBitmapOrIcon.cy = iconheight; | |
6353 | |
6354 WinSendMsg(handle, CM_SETCNRINFO, &cnrinfo, MPFROMLONG(CMA_FLWINDOWATTR | CMA_SLBITMAPORICON)); | |
6355 } | 6346 } |
6356 | 6347 |
6357 /* | 6348 /* |
6358 * Starts a new query of a container. | 6349 * Starts a new query of a container. |
6359 * Parameters: | 6350 * Parameters: |