Rename hiro::Property to hiro::Attribute
Disable XChaCha20 CSPRNG on Android for now due to compilation issues
Add macOS IOKit joypad support [Sintendo]
This commit is contained in:
byuu
2019-09-17 03:37:03 +09:00
parent 1e626e75ef
commit 18d2ab6435
32 changed files with 511 additions and 146 deletions

View File

@@ -44,7 +44,13 @@ auto pComboButton::reset() -> void {
SendMessage(hwnd, CB_RESETCONTENT, 0, 0);
}
//Windows overrides the height parameter for a ComboButton's SetWindowPos to be the drop-down list height.
//the canonical way to set the actual height is through CB_SETITEMHEIGHT. However, doing so is bugged.
//the ComboButton will end up not being painted for ~500ms after calling ShowWindow(hwnd, SW_NORMAL) on it.
//thus, implementing windows that use multiple pages of controls via toggling visibility will flicker heavily.
//as a result, the best we can do is center the actual widget within the requested space.
auto pComboButton::setGeometry(Geometry geometry) -> void {
//since the ComboButton has a fixed height, it will always be the same, even before calling setGeometry() once.
RECT rc;
GetWindowRect(hwnd, &rc);
geometry.setY(geometry.y() + (geometry.height() - (rc.bottom - rc.top)));