Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftWin32: enable tab control in ComCtl32 #778

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
| DWORD(ICC_NATIVEFNTCTL_CLASS)
| DWORD(ICC_PROGRESS_CLASS)
| DWORD(ICC_STANDARD_CLASSES)
| DWORD(ICC_TAB_CLASSES)

Check warning on line 101 in Sources/SwiftWin32/App and Environment/ApplicationMain.swift

View check run for this annotation

Codecov / codecov/patch

Sources/SwiftWin32/App and Environment/ApplicationMain.swift#L101

Added line #L101 was not covered by tests
var ICCE: INITCOMMONCONTROLSEX =
INITCOMMONCONTROLSEX(dwSize: DWORD(MemoryLayout<INITCOMMONCONTROLSEX>.size),
dwICC: dwICC)
Expand Down
15 changes: 15 additions & 0 deletions Sources/SwiftWin32/Support/WinSDK+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,21 @@
DWORD(QS_INPUT) | DWORD(QS_POSTMESSAGE) | DWORD(QS_TIMER) | DWORD(QS_PAINT) | DWORD(QS_HOTKEY) | DWORD(QS_SENDMESSAGE)
}

@_transparent
internal var TCS_BOTTOM: DWORD {
DWORD(WinSDK.TCS_BOTTOM)
}

Check warning on line 153 in Sources/SwiftWin32/Support/WinSDK+Extensions.swift

View check run for this annotation

Codecov / codecov/patch

Sources/SwiftWin32/Support/WinSDK+Extensions.swift#L151-L153

Added lines #L151 - L153 were not covered by tests

@_transparent
internal var TCS_FIXEDWIDTH: DWORD {
DWORD(WinSDK.TCS_FIXEDWIDTH)
}

Check warning on line 158 in Sources/SwiftWin32/Support/WinSDK+Extensions.swift

View check run for this annotation

Codecov / codecov/patch

Sources/SwiftWin32/Support/WinSDK+Extensions.swift#L156-L158

Added lines #L156 - L158 were not covered by tests

@_transparent
internal var TCS_FLATBUTTONS: DWORD {
DWORD(WinSDK.TCS_FLATBUTTONS)
}

Check warning on line 163 in Sources/SwiftWin32/Support/WinSDK+Extensions.swift

View check run for this annotation

Codecov / codecov/patch

Sources/SwiftWin32/Support/WinSDK+Extensions.swift#L161-L163

Added lines #L161 - L163 were not covered by tests

@_transparent
internal var WS_BORDER: DWORD {
DWORD(WinSDK.WS_BORDER)
Expand Down
Loading