Changeset 223 for Include/windows


Ignore:
Timestamp:
Apr 30, 2007, 1:56:57 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

Controlがコンパイルできるように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/windows/WindowHandle.sbp

    r208 r223  
    372372    End Function
    373373
     374    Const Function ScreenToClient(ByRef rc As RECT) As Boolean
     375        Dim ppt = VarPtr(rc) As *POINTAPI
     376        Return _System_ScreenToClient(hwnd, ppt[0]) And _System_ScreenToClient(hwnd, ppt[1])
     377    End Function
     378
    374379    Function Scroll(dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT, flags As DWord) As Boolean
    375380        Return ScrollWindowEx(hwnd, dx, dy, rcScroll, rcClip, hrgnUpdate, rcUpdate, flags) As Boolean
     
    626631    End Function
    627632
    628     Sub Style(newStyle As DWord) DWord
     633    Sub Style(newStyle As DWord)
    629634        _System_SetWindowLongPtr(hwnd, GWLP_STYLE, newStyle)
    630635    End Sub
     
    677682
    678683    Const Function Parent() As WindowHandle
    679         Return _System_GetParent(hwnd)
     684        Return New WindowHandle(_System_GetParent(hwnd))
    680685    End Function
    681686
     
    714719    Sub Prop(str As PCTSTR, h As HANDLE)
    715720        SetProp(str, h)
    716     End Sub
    717 
    718     Sub Prop(psz As PCTSTR, h As HANDLE)
    719         SetProp(psz, h)
    720721    End Sub
    721722
Note: See TracChangeset for help on using the changeset viewer.