- Timestamp:
- Sep 14, 2009, 8:20:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Text.java
r14 r189 699 699 * </ul> 700 700 */ 701 //public int getLineHeight () {702 //checkWidget ();701 public int getLineHeight () { 702 checkWidget (); 703 703 // int newFont, oldFont = 0; 704 704 // int hDC = OS.GetDC (handle); … … 710 710 // OS.ReleaseDC (handle, hDC); 711 711 // return tm.tmHeight; 712 //} 712 713 //@@TODO(lpino): Implement MLM_QUERYFONT 714 // if ((style & SWT.MULTI) != 0){ 715 // FATTRS hFont; 716 // OS.WinSendMsg (handle, OS.MLM_QUERYFONT, hFont, 0); 717 // }else{ 718 int hps = this.hps; 719 if (hps == 0) hps = OS.WinGetPS (handle); 720 FONTMETRICS fm = new FONTMETRICS(); 721 OS.GpiQueryFontMetrics (hps, FONTMETRICS.sizeof, fm); 722 return fm.lEmHeight; 723 // } 724 // return 0; 725 } 713 726 714 727 /**
Note:
See TracChangeset
for help on using the changeset viewer.