comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/ToolBar.d @ 4:6bf2837c50fe

Created own class for Math
author Frank Benoit <benoit@tionex.de>
date Wed, 04 Mar 2009 23:46:02 +0100
parents 6dd524f61e62
children 9f4c18c268b2
comparison
equal deleted inserted replaced
3:4c0057e71936 4:6bf2837c50fe
231 if ((lpButton.fsStyle & OS.BTNS_SEP) !is 0) { 231 if ((lpButton.fsStyle & OS.BTNS_SEP) !is 0) {
232 TBBUTTONINFO info; 232 TBBUTTONINFO info;
233 info.cbSize = TBBUTTONINFO.sizeof; 233 info.cbSize = TBBUTTONINFO.sizeof;
234 info.dwMask = OS.TBIF_SIZE; 234 info.dwMask = OS.TBIF_SIZE;
235 OS.SendMessage (handle, OS.TB_GETBUTTONINFO, lpButton.idCommand, &info); 235 OS.SendMessage (handle, OS.TB_GETBUTTONINFO, lpButton.idCommand, &info);
236 width = Math.max (width, info.cx); 236 width = Math.max (width, cast(int)info.cx);
237 } else { 237 } else {
238 width = Math.max (width, rect.right); 238 width = Math.max (width, rect.right);
239 } 239 }
240 } 240 }
241 } else { 241 } else {