Show
Ignore:
Timestamp:
07/25/08 20:08:41 (6 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Fix struct sizes, based on a comparison to the values seen by C apps.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/Shell.d

    r246 r263  
    650650    static if (OS.IsWinCE) return; 
    651651    TOOLINFO lpti; 
    652     lpti.cbSize = TOOLINFO.sizeof; 
     652    lpti.cbSize = OS.TOOLINFO_sizeof; 
    653653    lpti.hwnd = handle; 
    654654    lpti.uId = toolTip.id; 
     
    697697    if (balloonTipHandle_ !is null) { 
    698698        TOOLINFO lpti; 
    699         lpti.cbSize = TOOLINFO.sizeof; 
     699        lpti.cbSize = OS.TOOLINFO_sizeof; 
    700700        lpti.uId = toolTip.id; 
    701701        lpti.hwnd = handle; 
     
    847847        if (toolTipHandle_ is null) return; 
    848848        TOOLINFO lpti; 
    849         lpti.cbSize = TOOLINFO.sizeof; 
     849        lpti.cbSize = OS.TOOLINFO_sizeof; 
    850850        if (OS.SendMessage (toolTipHandle_, OS.TTM_GETCURRENTTOOL, 0, &lpti) !is 0) { 
    851851            if ((lpti.uFlags & OS.TTF_IDISHWND) !is 0) { 
     
    940940    if (OS.SendMessage (hwndToolTip, OS.TTM_GETCURRENTTOOL, 0, 0) !is 0) { 
    941941        TOOLINFO lpti; 
    942         lpti.cbSize = TOOLINFO.sizeof; 
     942        lpti.cbSize = OS.TOOLINFO_sizeof; 
    943943        if (OS.SendMessage (hwndToolTip, OS.TTM_GETCURRENTTOOL, 0, &lpti) !is 0) { 
    944944            if ((lpti.uFlags & OS.TTF_IDISHWND) is 0) return findToolTip (lpti.uId); 
     
    16761676    static if (OS.IsWinCE) return; 
    16771677    TOOLINFO lpti; 
    1678     lpti.cbSize = TOOLINFO.sizeof; 
     1678    lpti.cbSize = OS.TOOLINFO_sizeof; 
    16791679    lpti.hwnd = handle; 
    16801680    lpti.uId = cast(uint) hwnd;