comparison os2/dw.c @ 18:f1002d51d959

Fixed a container problem on OS/2 with separator set to 0.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 19 Jul 2001 00:28:54 +0000
parents ca7a8215487a
children 38295c8d06d5
comparison
equal deleted inserted replaced
17:f26eced21a30 18:f1002d51d959
3714 * handle: Handle to the listbox to be queried. 3714 * handle: Handle to the listbox to be queried.
3715 */ 3715 */
3716 unsigned int dw_listbox_selected(HWND handle) 3716 unsigned int dw_listbox_selected(HWND handle)
3717 { 3717 {
3718 return (unsigned int)WinSendMsg(handle, 3718 return (unsigned int)WinSendMsg(handle,
3719 LM_QUERYSELECTION, 3719 LM_QUERYSELECTION,
3720 MPFROMSHORT(LIT_CURSOR), 3720 MPFROMSHORT(LIT_CURSOR),
3721 0); 3721 0);
3722 } 3722 }
3723 3723
3724 /* 3724 /*
3725 * Returns the index to the current selected item or -1 when done. 3725 * Returns the index to the current selected item or -1 when done.
3726 * Parameters: 3726 * Parameters:
4162 detin.pFieldInfoOrder = (PFIELDINFO) CMA_FIRST; 4162 detin.pFieldInfoOrder = (PFIELDINFO) CMA_FIRST;
4163 detin.cFieldInfoInsert = (ULONG)count; 4163 detin.cFieldInfoInsert = (ULONG)count;
4164 4164
4165 WinSendMsg(handle, CM_INSERTDETAILFIELDINFO, MPFROMP(first), MPFROMP(&detin)); 4165 WinSendMsg(handle, CM_INSERTDETAILFIELDINFO, MPFROMP(first), MPFROMP(&detin));
4166 4166
4167 if(count > separator) 4167 if(count > separator && separator > 0)
4168 { 4168 {
4169 cnri.cb = sizeof(CNRINFO); 4169 cnri.cb = sizeof(CNRINFO);
4170 cnri.pFieldInfoLast = left; 4170 cnri.pFieldInfoLast = left;
4171 cnri.xVertSplitbar = 150; 4171 cnri.xVertSplitbar = 150;
4172 4172