diff dwt/widgets/Shell.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents 07ed83d51a19
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/widgets/Shell.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/widgets/Shell.d	Mon May 05 00:12:38 2008 +0200
@@ -148,7 +148,7 @@
     int minWidth = DWT.DEFAULT, minHeight = DWT.DEFAULT;
     HBRUSH [] brushes;
     bool showWithParent;
-    char[] toolTitle, balloonTitle;
+    String toolTitle, balloonTitle;
     HICON toolIcon;
     HICON balloonIcon;
     WNDPROC windowProc_;
@@ -801,7 +801,7 @@
 void fixShell (Shell newShell, Control control) {
     if (this is newShell) return;
     if (control is lastActive) setActiveControl (null);
-    char[] toolTipText = control.toolTipText_;
+    String toolTipText = control.toolTipText_;
     if (toolTipText !is null) {
         control.setToolTipText (this, null);
         control.setToolTipText (newShell, toolTipText);
@@ -1502,7 +1502,7 @@
     this.region = region;
 }
 
-void setToolTipText (HWND hwnd, char[] text) {
+void setToolTipText (HWND hwnd, String text) {
     static if (OS.IsWinCE) return;
     TOOLINFO lpti;
     lpti.cbSize = TOOLINFO.sizeof;
@@ -1555,7 +1555,7 @@
     lpnmtdi.lpszText = lpstrTip;
 }
 
-void setToolTipTitle (HWND hwndToolTip, char[] text, HICON icon) {
+void setToolTipTitle (HWND hwndToolTip, String text, HICON icon) {
     /*
     * Bug in Windows.  For some reason, when TTM_SETTITLE
     * is used to set the title of a tool tip, Windows leaks
@@ -1766,7 +1766,7 @@
     return bits;
 }
 
-override char[] windowClass () {
+override String windowClass () {
     static if (OS.IsSP) return DialogClass;
     if ((style & DWT.TOOL) !is 0) {
         int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE;