Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Shell.d @ 38:2e09b0e6857a
work on phobosfication
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 11:18:25 +0100 |
parents | d46287db17ed |
children | 0ecb2b338560 |
comparison
equal
deleted
inserted
replaced
37:46c5f8f56b41 | 38:2e09b0e6857a |
---|---|
157 SHACTIVATEINFO psai; | 157 SHACTIVATEINFO psai; |
158 } | 158 } |
159 static /+const+/ WNDPROC ToolTipProc; | 159 static /+const+/ WNDPROC ToolTipProc; |
160 static /+const+/ WNDPROC DialogProc; | 160 static /+const+/ WNDPROC DialogProc; |
161 static if( OS.IsWinCE ){ | 161 static if( OS.IsWinCE ){ |
162 static const TCHAR[] DialogClass = "Dialog\0"w; | 162 static const StringT DialogClass = "Dialog\0"w; |
163 } | 163 } |
164 else{ | 164 else{ |
165 static const TCHAR[] DialogClass = "#32770\0"w; | 165 version(D_Version2){ |
166 static StringT DialogClass = "#32770\0"w; | |
167 } else { // D1 | |
168 static const StringT DialogClass = "#32770\0"w; | |
169 } | |
166 } | 170 } |
167 const static int [] SYSTEM_COLORS = [ | 171 const static int [] SYSTEM_COLORS = [ |
168 OS.COLOR_BTNFACE, | 172 OS.COLOR_BTNFACE, |
169 OS.COLOR_WINDOW, | 173 OS.COLOR_WINDOW, |
170 OS.COLOR_BTNTEXT, | 174 OS.COLOR_BTNTEXT, |
1685 OS.SendMessage (hwndToolTip, OS.TTM_ADDTOOL, 0, cast(int)&lpti); | 1689 OS.SendMessage (hwndToolTip, OS.TTM_ADDTOOL, 0, cast(int)&lpti); |
1686 } | 1690 } |
1687 } | 1691 } |
1688 } | 1692 } |
1689 | 1693 |
1690 void setToolTipText (NMTTDISPINFO* lpnmtdi, CHAR [] buffer) { | 1694 void setToolTipText (NMTTDISPINFO* lpnmtdi, CCHAR [] buffer) { |
1691 /* | 1695 /* |
1692 * Ensure that the current position of the mouse | 1696 * Ensure that the current position of the mouse |
1693 * is inside the client area of the shell. This | 1697 * is inside the client area of the shell. This |
1694 * prevents tool tips from popping up over the | 1698 * prevents tool tips from popping up over the |
1695 * shell trimmings. | 1699 * shell trimmings. |
1701 lpstrTip = cast(TCHAR*)OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); | 1705 lpstrTip = cast(TCHAR*)OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); |
1702 OS.MoveMemory (lpstrTip, buffer.ptr, byteCount); | 1706 OS.MoveMemory (lpstrTip, buffer.ptr, byteCount); |
1703 lpnmtdi.lpszText = lpstrTip; | 1707 lpnmtdi.lpszText = lpstrTip; |
1704 } | 1708 } |
1705 | 1709 |
1706 void setToolTipText (NMTTDISPINFO* lpnmtdi, WCHAR [] buffer) { | 1710 void setToolTipText (NMTTDISPINFO* lpnmtdi, CWCHAR [] buffer) { |
1707 /* | 1711 /* |
1708 * Ensure that the current position of the mouse | 1712 * Ensure that the current position of the mouse |
1709 * is inside the client area of the shell. This | 1713 * is inside the client area of the shell. This |
1710 * prevents tool tips from popping up over the | 1714 * prevents tool tips from popping up over the |
1711 * shell trimmings. | 1715 * shell trimmings. |