comparison os2/dw.c @ 154:7f8fcce45bdd

Fixed EMX building.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 07 Nov 2002 06:21:29 +0000
parents a371875d5486
children 840c54766306
comparison
equal deleted inserted replaced
153:a371875d5486 154:7f8fcce45bdd
3780 blah->oldproc = WinSubclassWindow(tmp, _statusproc); 3780 blah->oldproc = WinSubclassWindow(tmp, _statusproc);
3781 WinSetWindowPtr(tmp, QWP_USER, blah); 3781 WinSetWindowPtr(tmp, QWP_USER, blah);
3782 return tmp; 3782 return tmp;
3783 } 3783 }
3784 3784
3785 #ifndef MLS_LIMITVSCROLL
3786 #define MLS_LIMITVSCROLL 0x00000080L
3787 #endif
3788
3785 /* 3789 /*
3786 * Create a new Multiline Editbox window (widget) to be packed. 3790 * Create a new Multiline Editbox window (widget) to be packed.
3787 * Parameters: 3791 * Parameters:
3788 * id: An ID to be used with WinWindowFromID() or 0L. 3792 * id: An ID to be used with WinWindowFromID() or 0L.
3789 */ 3793 */
5803 RECTL viewport, item; 5807 RECTL viewport, item;
5804 5808
5805 pCore = WinSendMsg(handle, CM_QUERYRECORD, (MPARAM)0L, MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER)); 5809 pCore = WinSendMsg(handle, CM_QUERYRECORD, (MPARAM)0L, MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER));
5806 while(pCore) 5810 while(pCore)
5807 { 5811 {
5808 if(pCore->pszIcon == text) 5812 if((char *)pCore->pszIcon == text)
5809 { 5813 {
5810 QUERYRECORDRECT qrr; 5814 QUERYRECORDRECT qrr;
5811 int scrollpixels = 0, midway; 5815 int scrollpixels = 0, midway;
5812 5816
5813 qrr.cb = sizeof(QUERYRECORDRECT); 5817 qrr.cb = sizeof(QUERYRECORDRECT);
6758 { 6762 {
6759 ULONG ulMajor = 0; 6763 ULONG ulMajor = 0;
6760 ULONG ulMinor = 0; 6764 ULONG ulMinor = 0;
6761 6765
6762 char* pch = pchEnd + 2; 6766 char* pch = pchEnd + 2;
6763 while (!isdigit (*pch) && *pch) 6767 while (!isdigit ((int)*pch) && *pch)
6764 pch++; 6768 pch++;
6765 6769
6766 while (isdigit (*pch)) 6770 while (isdigit ((int)*pch))
6767 ulMajor = ulMajor * 10 + *pch++ - '0'; 6771 ulMajor = ulMajor * 10 + *pch++ - '0';
6768 6772
6769 if (*pch == '.') 6773 if (*pch == '.')
6770 { 6774 {
6771 while (isdigit (*++pch)) 6775 while (isdigit ((int)*++pch))
6772 ulMinor = ulMinor * 10 + *pch - '0'; 6776 ulMinor = ulMinor * 10 + *pch - '0';
6773 } 6777 }
6774 return ((ulMajor << 16) | ulMinor); 6778 return ((ulMajor << 16) | ulMinor);
6775 } 6779 }
6776 pchEnd--; 6780 pchEnd--;