comparison dwt/widgets/Table.d @ 320:da968414c383

Merge changes SWT 3.4.1
author Frank Benoit <benoit@tionex.de>
date Mon, 03 Nov 2008 21:58:40 +0100
parents e4b7af6b8e7e
children
comparison
equal deleted inserted replaced
319:71b78d56f01f 320:da968414c383
5438 * Bug in Windows. For custom draw control the window origin the 5438 * Bug in Windows. For custom draw control the window origin the
5439 * in HDC is wrong. 5439 * in HDC is wrong.
5440 * 5440 *
5441 * The fix for both cases is to create the image using PrintWindow(). 5441 * The fix for both cases is to create the image using PrintWindow().
5442 */ 5442 */
5443 if ((!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) || hooks (DWT.EraseItem) || hooks (DWT.PaintItem)) { 5443 if ((!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) || (style & DWT.VIRTUAL) !is 0 || hooks (DWT.EraseItem) || hooks (DWT.PaintItem)) {
5444 int topIndex = OS.SendMessage (handle, OS.LVM_GETTOPINDEX, 0, 0); 5444 int topIndex = OS.SendMessage (handle, OS.LVM_GETTOPINDEX, 0, 0);
5445 int selection = OS.SendMessage (handle, OS.LVM_GETNEXTITEM, topIndex - 1, OS.LVNI_SELECTED); 5445 int selection = OS.SendMessage (handle, OS.LVM_GETNEXTITEM, topIndex - 1, OS.LVNI_SELECTED);
5446 if (selection is -1) return 0; 5446 if (selection is -1) return 0;
5447 POINT mousePos; 5447 POINT mousePos;
5448 OS.POINTSTOPOINT (mousePos, OS.GetMessagePos ()); 5448 OS.POINTSTOPOINT (mousePos, OS.GetMessagePos ());