Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/MessageBox.d @ 38:2e09b0e6857a
work on phobosfication
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 11:18:25 +0100 |
parents | 6dd524f61e62 |
children |
comparison
equal
deleted
inserted
replaced
37:46c5f8f56b41 | 38:2e09b0e6857a |
---|---|
212 display.setModalDialog (this); | 212 display.setModalDialog (this); |
213 } | 213 } |
214 | 214 |
215 /* Open the message box */ | 215 /* Open the message box */ |
216 /* Use the character encoding for the default locale */ | 216 /* Use the character encoding for the default locale */ |
217 TCHAR[] buffer1 = StrToTCHARs (0, message, true); | 217 StringT buffer1 = StrToTCHARs (0, message, true); |
218 TCHAR[] buffer2 = StrToTCHARs (0, title, true); | 218 StringT buffer2 = StrToTCHARs (0, title, true); |
219 int code = OS.MessageBox (hwndOwner, buffer1.ptr, buffer2.ptr, bits); | 219 int code = OS.MessageBox (hwndOwner, buffer1.ptr, buffer2.ptr, bits); |
220 | 220 |
221 /* Clear the temporarily dialog modal parent */ | 221 /* Clear the temporarily dialog modal parent */ |
222 if ((bits & OS.MB_TASKMODAL) !is 0) { | 222 if ((bits & OS.MB_TASKMODAL) !is 0) { |
223 display.setModalDialog (oldModal); | 223 display.setModalDialog (oldModal); |