Mercurial > dwindows
comparison os2/dw.c @ 1544:1fd3a9635c4d
Enable MLE line wrap by default on OS/2...
and attempt to add horizontal scrollbars when wrap is off.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 13 Jan 2012 06:02:44 +0000 |
parents | a4ecef1980db |
children | 2fd9ff675d79 |
comparison
equal
deleted
inserted
replaced
1543:b86a04751ea0 | 1544:1fd3a9635c4d |
---|---|
5736 { | 5736 { |
5737 WindowData *blah = calloc(1, sizeof(WindowData)); | 5737 WindowData *blah = calloc(1, sizeof(WindowData)); |
5738 HWND tmp = WinCreateWindow(HWND_OBJECT, | 5738 HWND tmp = WinCreateWindow(HWND_OBJECT, |
5739 WC_MLE, | 5739 WC_MLE, |
5740 NULL, | 5740 NULL, |
5741 WS_VISIBLE | | 5741 WS_VISIBLE | MLS_WORDWRAP | |
5742 MLS_BORDER | MLS_IGNORETAB | | 5742 MLS_BORDER | MLS_IGNORETAB | |
5743 MLS_VSCROLL | | 5743 MLS_VSCROLL | MLS_LIMITVSCROLL, |
5744 MLS_LIMITVSCROLL, | |
5745 0,0,2000,1000, | 5744 0,0,2000,1000, |
5746 NULLHANDLE, | 5745 NULLHANDLE, |
5747 HWND_TOP, | 5746 HWND_TOP, |
5748 id, | 5747 id, |
5749 NULL, | 5748 NULL, |
7663 * state: TRUE if it wraps, FALSE if it doesn't. | 7662 * state: TRUE if it wraps, FALSE if it doesn't. |
7664 */ | 7663 */ |
7665 void API dw_mle_set_word_wrap(HWND handle, int state) | 7664 void API dw_mle_set_word_wrap(HWND handle, int state) |
7666 { | 7665 { |
7667 WinSendMsg(handle, MLM_SETWRAP, MPFROMLONG(state), 0); | 7666 WinSendMsg(handle, MLM_SETWRAP, MPFROMLONG(state), 0); |
7667 WinSetWindowBits(handle, QWL_STYLE, state ? MLS_HSCROLL : 0, MLS_HSCROLL); | |
7668 } | 7668 } |
7669 | 7669 |
7670 /* | 7670 /* |
7671 * Sets the current cursor position of an MLE box. | 7671 * Sets the current cursor position of an MLE box. |
7672 * Parameters: | 7672 * Parameters: |