Mercurial > dwindows
comparison os2/dw.c @ 996:69cf9f26e899
Removed some code I accidentally commited to the OS/2 module.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 07 May 2011 19:55:05 +0000 |
parents | 65ccdda2d743 |
children | 99907f19a703 |
comparison
equal
deleted
inserted
replaced
995:65ccdda2d743 | 996:69cf9f26e899 |
---|---|
4879 0,0,2000,1000, | 4879 0,0,2000,1000, |
4880 NULLHANDLE, | 4880 NULLHANDLE, |
4881 HWND_TOP, | 4881 HWND_TOP, |
4882 id, | 4882 id, |
4883 NULL, | 4883 NULL, |
4884 NULL); | 4884 NULL); |
4885 WinSendMsg(tmp, MLM_FORMAT, MLFIE_NOTRANS, 0); | 4885 WinSendMsg(tmp, MLM_FORMAT, MLFIE_NOTRANS, 0); |
4886 blah->oldproc = WinSubclassWindow(tmp, _mleproc); | 4886 blah->oldproc = WinSubclassWindow(tmp, _mleproc); |
4887 WinSetWindowPtr(tmp, QWP_USER, blah); | 4887 WinSetWindowPtr(tmp, QWP_USER, blah); |
4888 dw_window_set_font(tmp, DefaultFont); | 4888 dw_window_set_font(tmp, DefaultFont); |
4889 return tmp; | 4889 return tmp; |
6347 void API dw_listbox_delete(HWND handle, int index) | 6347 void API dw_listbox_delete(HWND handle, int index) |
6348 { | 6348 { |
6349 WinSendMsg(handle, LM_DELETEITEM, MPFROMSHORT(index), 0); | 6349 WinSendMsg(handle, LM_DELETEITEM, MPFROMSHORT(index), 0); |
6350 } | 6350 } |
6351 | 6351 |
6352 void _strip_cr(char *dest, char *src) | |
6353 { | |
6354 int z, x = 0; | |
6355 | |
6356 for(z=0;z<strlen(src);z++) | |
6357 { | |
6358 if(src[z] != '\r') | |
6359 { | |
6360 dest[x] = src[z]; | |
6361 x++; | |
6362 } | |
6363 } | |
6364 dest[x] = 0; | |
6365 } | |
6366 | |
6367 /* | 6352 /* |
6368 * Adds text to an MLE box and returns the current point. | 6353 * Adds text to an MLE box and returns the current point. |
6369 * Parameters: | 6354 * Parameters: |
6370 * handle: Handle to the MLE to be queried. | 6355 * handle: Handle to the MLE to be queried. |
6371 * buffer: Text buffer to be imported. | 6356 * buffer: Text buffer to be imported. |