Mercurial > dwindows
comparison os2/dw.c @ 822:eaaef18d5b21
Fix various compiler warnings on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 26 Mar 2011 13:17:37 +0000 |
parents | 2dd7638a7719 |
children | fd775ade945f |
comparison
equal
deleted
inserted
replaced
821:00fa951abeb5 | 822:eaaef18d5b21 |
---|---|
907 WinQueryClassName(hwnd, 99, tmpbuf); | 907 WinQueryClassName(hwnd, 99, tmpbuf); |
908 | 908 |
909 /* If we have a notebook we resize the page again. */ | 909 /* If we have a notebook we resize the page again. */ |
910 if(strncmp(tmpbuf, "#40", 4)==0) | 910 if(strncmp(tmpbuf, "#40", 4)==0) |
911 { | 911 { |
912 unsigned long x, y, width, height; | 912 long x, y; |
913 unsigned long width, height; | |
913 ULONG page = (ULONG)WinSendMsg(hwnd, BKM_QUERYPAGEID, 0, MPFROM2SHORT(BKA_FIRST, BKA_MAJOR)); | 914 ULONG page = (ULONG)WinSendMsg(hwnd, BKM_QUERYPAGEID, 0, MPFROM2SHORT(BKA_FIRST, BKA_MAJOR)); |
914 | 915 |
915 while(page) | 916 while(page) |
916 { | 917 { |
917 HWND pagehwnd = (HWND)WinSendMsg(hwnd, BKM_QUERYPAGEWINDOWHWND, MPFROMLONG(page), 0); | 918 HWND pagehwnd = (HWND)WinSendMsg(hwnd, BKM_QUERYPAGEWINDOWHWND, MPFROMLONG(page), 0); |
2750 case BKN_PAGESELECTEDPENDING: | 2751 case BKN_PAGESELECTEDPENDING: |
2751 { | 2752 { |
2752 PAGESELECTNOTIFY *psn = (PAGESELECTNOTIFY *)mp2; | 2753 PAGESELECTNOTIFY *psn = (PAGESELECTNOTIFY *)mp2; |
2753 HWND pagehwnd = (HWND)WinSendMsg(psn->hwndBook, BKM_QUERYPAGEWINDOWHWND, MPFROMLONG(psn->ulPageIdNew), 0); | 2754 HWND pagehwnd = (HWND)WinSendMsg(psn->hwndBook, BKM_QUERYPAGEWINDOWHWND, MPFROMLONG(psn->ulPageIdNew), 0); |
2754 Box *pagebox = (Box *)WinQueryWindowPtr(pagehwnd, QWP_USER); | 2755 Box *pagebox = (Box *)WinQueryWindowPtr(pagehwnd, QWP_USER); |
2755 unsigned long x, y, width, height; | 2756 long x, y; |
2757 unsigned long width, height; | |
2756 RECTL rc; | 2758 RECTL rc; |
2757 | 2759 |
2758 if(pagebox && psn->ulPageIdNew != psn->ulPageIdCur) | 2760 if(pagebox && psn->ulPageIdNew != psn->ulPageIdCur) |
2759 { | 2761 { |
2760 dw_window_get_pos_size(psn->hwndBook, &x, &y, &width, &height); | 2762 dw_window_get_pos_size(psn->hwndBook, &x, &y, &width, &height); |
9174 * Pointer to an allocated string of text or NULL if clipboard empty or contents could not | 9176 * Pointer to an allocated string of text or NULL if clipboard empty or contents could not |
9175 * be converted to text. | 9177 * be converted to text. |
9176 */ | 9178 */ |
9177 char *dw_clipboard_get_text() | 9179 char *dw_clipboard_get_text() |
9178 { | 9180 { |
9179 return ""; | 9181 return NULL; |
9180 } | 9182 } |
9181 | 9183 |
9182 /* | 9184 /* |
9183 * Sets the contents of the default clipboard to the supplied text. | 9185 * Sets the contents of the default clipboard to the supplied text. |
9184 * INCOMPLETE | 9186 * INCOMPLETE |
9185 * Parameters: | 9187 * Parameters: |
9186 * Text. | 9188 * Text. |
9187 */ | 9189 */ |
9188 void dw_clipboard_set_text( char *str, int len ) | 9190 void dw_clipboard_set_text( char *str, int len ) |
9189 { | 9191 { |
9190 return; | 9192 str = str; |
9193 len = len; | |
9194 return; | |
9191 } | 9195 } |
9192 | 9196 |
9193 /* | 9197 /* |
9194 * Returns some information about the current operating environment. | 9198 * Returns some information about the current operating environment. |
9195 * Parameters: | 9199 * Parameters: |