comparison os2/dw.c @ 24:d9e87e8bcf1d

Updated dynamic windows to build with EMX.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 17 Aug 2001 11:44:05 +0000
parents 2932f9d2c7d5
children b1d7e8a28dfa
comparison
equal deleted inserted replaced
23:2932f9d2c7d5 24:d9e87e8bcf1d
1094 1094
1095 hpsPaint = WinGetPS(hWnd); 1095 hpsPaint = WinGetPS(hWnd);
1096 GpiSetColor(hpsPaint, CLR_PALEGRAY); 1096 GpiSetColor(hpsPaint, CLR_PALEGRAY);
1097 1097
1098 ptl.x = 0; 1098 ptl.x = 0;
1099 ptl.y = 99; 1099 ptl.y = 0;
1100 GpiMove(hpsPaint, &ptl); 1100 GpiMove(hpsPaint, &ptl);
1101 1101
1102 ptl.x = width; 1102 ptl.x = width;
1103 ptl.y = height - thumbheight; 1103 ptl.y = height - thumbheight;
1104 GpiBox(hpsPaint, DRO_FILL, &ptl, 0, 0); 1104 GpiBox(hpsPaint, DRO_FILL, &ptl, 0, 0);
1208 POINTS pts = (*((POINTS*)&mp1)); 1208 POINTS pts = (*((POINTS*)&mp1));
1209 int (*buttonfunc)(HWND, int, int, int, void *) = (int (*)(HWND, int, int, int, void *))tmp->signalfunction; 1209 int (*buttonfunc)(HWND, int, int, int, void *) = (int (*)(HWND, int, int, int, void *))tmp->signalfunction;
1210 1210
1211 if(hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd || WinQueryCapture(HWND_DESKTOP) == tmp->window) 1211 if(hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd || WinQueryCapture(HWND_DESKTOP) == tmp->window)
1212 { 1212 {
1213 int button; 1213 int button = 0;
1214 1214
1215 switch(origmsg) 1215 switch(origmsg)
1216 { 1216 {
1217 case WM_BUTTON1DOWN: 1217 case WM_BUTTON1DOWN:
1218 button = 1; 1218 button = 1;
1235 POINTS pts = (*((POINTS*)&mp1)); 1235 POINTS pts = (*((POINTS*)&mp1));
1236 int (*buttonfunc)(HWND, int, int, int, void *) = (int (*)(HWND, int, int, int, void *))tmp->signalfunction; 1236 int (*buttonfunc)(HWND, int, int, int, void *) = (int (*)(HWND, int, int, int, void *))tmp->signalfunction;
1237 1237
1238 if(hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd || WinQueryCapture(HWND_DESKTOP) == tmp->window) 1238 if(hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd || WinQueryCapture(HWND_DESKTOP) == tmp->window)
1239 { 1239 {
1240 int button; 1240 int button = 0;
1241 1241
1242 switch(origmsg) 1242 switch(origmsg)
1243 { 1243 {
1244 case WM_BUTTON1UP: 1244 case WM_BUTTON1UP:
1245 button = 1; 1245 button = 1;