comparison os2/dw.c @ 178:770da0fc4c0d

Fixed a small regression from the watcom changes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 01 Dec 2002 16:19:53 +0000
parents d78d08440246
children 4207e64d4689
comparison
equal deleted inserted replaced
177:e3dd5c765775 178:770da0fc4c0d
4209 */ 4209 */
4210 HWND API dw_slider_new(int vertical, int increments, ULONG id) 4210 HWND API dw_slider_new(int vertical, int increments, ULONG id)
4211 { 4211 {
4212 WindowData *blah = calloc(1, sizeof(WindowData)); 4212 WindowData *blah = calloc(1, sizeof(WindowData));
4213 SLDCDATA sldcData = { 0, 0, 0, 0, 0 }; 4213 SLDCDATA sldcData = { 0, 0, 0, 0, 0 };
4214 HWND tmp = WinCreateWindow(HWND_OBJECT, 4214 HWND tmp;
4215 WC_SLIDER,
4216 "",
4217 WS_VISIBLE | SLS_SNAPTOINCREMENT |
4218 (vertical ? SLS_VERTICAL : SLS_HORIZONTAL),
4219 0,0,2000,1000,
4220 NULLHANDLE,
4221 HWND_TOP,
4222 id,
4223 &sldcData,
4224 NULL);
4225 4215
4226 sldcData.cbSize = sizeof(SLDCDATA); 4216 sldcData.cbSize = sizeof(SLDCDATA);
4227 sldcData.usScale1Increments = increments; 4217 sldcData.usScale1Increments = increments;
4218
4219 tmp = WinCreateWindow(HWND_OBJECT,
4220 WC_SLIDER,
4221 "",
4222 WS_VISIBLE | SLS_SNAPTOINCREMENT |
4223 (vertical ? SLS_VERTICAL : SLS_HORIZONTAL),
4224 0,0,2000,1000,
4225 NULLHANDLE,
4226 HWND_TOP,
4227 id,
4228 &sldcData,
4229 NULL);
4228 4230
4229 blah->oldproc = WinSubclassWindow(tmp, _entryproc); 4231 blah->oldproc = WinSubclassWindow(tmp, _entryproc);
4230 WinSetWindowPtr(tmp, QWP_USER, blah); 4232 WinSetWindowPtr(tmp, QWP_USER, blah);
4231 return tmp; 4233 return tmp;
4232 } 4234 }