Skip to content

Commit 45a9e4e

Browse files
committed
SwiftWin32: enable tab control in ComCtl32
Enable the tab control behaviours for Common Controls to allow us to build out some of the tab view handling.
1 parent 0704e2e commit 45a9e4e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Sources/SwiftWin32/App and Environment/ApplicationMain.swift

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public func ApplicationMain(_ argc: Int32,
9898
| DWORD(ICC_NATIVEFNTCTL_CLASS)
9999
| DWORD(ICC_PROGRESS_CLASS)
100100
| DWORD(ICC_STANDARD_CLASSES)
101+
| DWORD(ICC_TAB_CLASSES)
101102
var ICCE: INITCOMMONCONTROLSEX =
102103
INITCOMMONCONTROLSEX(dwSize: DWORD(MemoryLayout<INITCOMMONCONTROLSEX>.size),
103104
dwICC: dwICC)

Sources/SwiftWin32/Support/WinSDK+Extensions.swift

+15
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,21 @@ internal var QS_ALLINPUT: DWORD {
147147
DWORD(QS_INPUT) | DWORD(QS_POSTMESSAGE) | DWORD(QS_TIMER) | DWORD(QS_PAINT) | DWORD(QS_HOTKEY) | DWORD(QS_SENDMESSAGE)
148148
}
149149

150+
@_transparent
151+
internal var TCS_BOTTOM: DWORD {
152+
DWORD(WinSDK.TCS_BOTTOM)
153+
}
154+
155+
@_transparent
156+
internal var TCS_FIXEDWIDTH: DWORD {
157+
DWORD(WinSDK.TCS_FIXEDWIDTH)
158+
}
159+
160+
@_transparent
161+
internal var TCS_FLATBUTTONS: DWORD {
162+
DWORD(WinSDK.TCS_FLATBUTTONS)
163+
}
164+
150165
@_transparent
151166
internal var WS_BORDER: DWORD {
152167
DWORD(WinSDK.WS_BORDER)

0 commit comments

Comments
 (0)