comparison os2/dw.c @ 23:2932f9d2c7d5

New OS/2 code from FX changes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 04 Aug 2001 19:36:21 +0000
parents 6a246b3bb14f
children d9e87e8bcf1d
comparison
equal deleted inserted replaced
22:6a246b3bb14f 23:2932f9d2c7d5
4575 ContainerInfo *ci = (ContainerInfo *)pointer; 4575 ContainerInfo *ci = (ContainerInfo *)pointer;
4576 PRECORDCORE temp = (PRECORDCORE)ci->data; 4576 PRECORDCORE temp = (PRECORDCORE)ci->data;
4577 int z, currentcount; 4577 int z, currentcount;
4578 CNRINFO cnr; 4578 CNRINFO cnr;
4579 4579
4580 if(!ci)
4581 return;
4582
4580 WinSendMsg(ci->handle, CM_QUERYCNRINFO, (MPARAM)&cnr, MPFROMSHORT(sizeof(CNRINFO))); 4583 WinSendMsg(ci->handle, CM_QUERYCNRINFO, (MPARAM)&cnr, MPFROMSHORT(sizeof(CNRINFO)));
4581 currentcount = cnr.cRecords; 4584 currentcount = cnr.cRecords;
4582 4585
4583 for(z=0;z<(row-currentcount);z++) 4586 for(z=0;z<(row-currentcount);z++)
4584 temp = temp->preccNextRecord; 4587 temp = temp->preccNextRecord;
4597 */ 4600 */
4598 void dw_container_insert(HWND handle, void *pointer, int rowcount) 4601 void dw_container_insert(HWND handle, void *pointer, int rowcount)
4599 { 4602 {
4600 RECORDINSERT recin; 4603 RECORDINSERT recin;
4601 ContainerInfo *ci = (ContainerInfo *)pointer; 4604 ContainerInfo *ci = (ContainerInfo *)pointer;
4605
4606 if(!ci)
4607 return;
4602 4608
4603 recin.cb = sizeof(RECORDINSERT); 4609 recin.cb = sizeof(RECORDINSERT);
4604 recin.pRecordOrder = (PRECORDCORE)CMA_END; 4610 recin.pRecordOrder = (PRECORDCORE)CMA_END;
4605 recin.pRecordParent = NULL; 4611 recin.pRecordParent = NULL;
4606 recin.zOrder = CMA_TOP; 4612 recin.zOrder = CMA_TOP;