mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 03:52:07 +02:00
v109
Keep focus on the panel list when changing settings / tools panels. Fixed Windows combo box flickering when changing panels. Suppress Alt+F4 on Windows in fullscreen mode.
This commit is contained in:
@@ -45,12 +45,10 @@ auto pComboButton::reset() -> void {
|
||||
}
|
||||
|
||||
auto pComboButton::setGeometry(Geometry geometry) -> void {
|
||||
//height = minimum drop-down list height; use CB_SETITEMHEIGHT to control actual widget height
|
||||
pWidget::setGeometry({geometry.x(), geometry.y(), geometry.width(), 1});
|
||||
RECT rc;
|
||||
GetWindowRect(hwnd, &rc);
|
||||
unsigned adjustedHeight = geometry.height() - ((rc.bottom - rc.top) - SendMessage(hwnd, CB_GETITEMHEIGHT, (WPARAM)-1, 0));
|
||||
SendMessage(hwnd, CB_SETITEMHEIGHT, (WPARAM)-1, adjustedHeight);
|
||||
geometry.setY(geometry.y() + (geometry.height() - (rc.bottom - rc.top)));
|
||||
pWidget::setGeometry({geometry.x(), geometry.y(), geometry.width(), 1});
|
||||
}
|
||||
|
||||
auto pComboButton::onChange() -> void {
|
||||
|
Reference in New Issue
Block a user