- Timestamp:
- Oct 10, 2009, 6:58:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Decorations.java
r191 r194 316 316 } 317 317 pacctAccelTable.cAccel = (short)nAccel; 318 //@@TEMP(lpino): in the future we should get this value from somewhere 318 //@@TEMP(lpino): in the future we should get this value from somewhere(WinQueryCp) 319 319 pacctAccelTable.codepage = (short)437; 320 320 pacctAccelTable.aaccel = new ACCEL[nAccel]; … … 322 322 pacctAccelTable.aaccel[i] = accelList[i]; 323 323 } 324 hAccel = OS.WinCreateAccelTable(getDisplay().hab, pacctAccelTable); 325 System.out.println("Decorations:createAcceleratorTable - Handle of accelerator table = " + hAccel); 324 System.out.println("Decorations:createAcceleratorTable "); 325 if (nAccel != 0) hAccel = OS.WinCreateAccelTable(getDisplay().hab, pacctAccelTable); 326 System.out.println("Decorations:createAcceleratorTable - Handle of accelerator table = " + hAccel); 326 327 if(!OS.WinSetAccelTable(getDisplay().hab, hAccel, frameHandle)){ 327 328 System.out.println("Decorations:createAcceleratorTable - Thread did not attach accelerator table to the frame"); … … 547 548 // * </ul> 548 549 // */ 549 //public Image getImage () {550 //checkWidget ();551 //return image;552 //}550 public Image getImage () { 551 checkWidget (); 552 return image; 553 } 553 554 554 555 /** … … 1370 1371 case OS.WM_WINDOWPOSCHANGED: result = FRAME_WM_WINDOWPOSCHANGED (mp1, mp2); break; 1371 1372 case OS.WM_CHAR: result = FRAME_WM_CHAR (mp1, mp2); break; 1372 } 1373 case OS.WM_ERASEBACKGROUND: result = FRAME_WM_ERASEBACKGROUND (mp1, mp2); break; 1374 case OS.WM_INITMENU: result = FRAME_WM_INITMENU (mp1, mp2); break; 1375 } 1373 1376 1374 1377 if (result != null) return result.value; … … 1501 1504 } 1502 1505 1503 //MRESULT WM_ERASEBACKGROUND (int mp1, int mp2) { 1506 MRESULT FRAME_WM_ERASEBACKGROUND (int mp1, int mp2) { 1507 //@@TODO (lpino): Remove debug 1504 1508 // System.out.println("Decorations::WM_ERASEBACKGROUND -> HANDLE = " + Integer.toHexString(handle)); 1505 // if ((state & CANVAS) != 0) { 1506 // return super.WM_ERASEBACKGROUND (mp1, mp2); 1507 // } 1508 // RECTL rcl = new RECTL(); 1509 // OS.objcpy (rcl, mp2); 1510 // drawBackground (mp1, rcl); 1511 // return MRESULT.FALSE; 1512 //} 1513 1509 if ((state & CANVAS) != 0) { 1510 return super.WM_ERASEBACKGROUND (mp1, mp2); 1511 } 1512 RECTL rcl = new RECTL(); 1513 OS.objcpy (rcl, mp2); 1514 drawBackground (mp1, rcl); 1515 return MRESULT.FALSE; 1516 } 1517 1518 MRESULT FRAME_WM_INITMENU (int mp1, int mp2) { 1519 return MRESULT.FALSE; 1520 } 1514 1521 MRESULT WM_SETFOCUS (int mp1, int mp2) { 1515 1522 MRESULT result = super.WM_SETFOCUS (mp1, mp2);
Note:
See TracChangeset
for help on using the changeset viewer.