winecfg: Set buddy window for the size up-down control only once.
commitbf6ed90cd6fd769534e8d7c2f1880f8db01b418b
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 22 Jun 2021 08:18:05 +0000 (22 16:18 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 22 Jun 2021 15:57:46 +0000 (22 17:57 +0200)
tree9f1b8e976d50ec55faf473046bd5b4215a231c0d
parente9a5cd2e5a87fb50814332f8d98e17f1757ed680
winecfg: Set buddy window for the size up-down control only once.

Fix the size up-down control becoming smaller every time the apply button is pressed in the Desktop
Integration tab.

UDM_SETBUDDY always shrinks the buddy window for a up-down control according to tests. And a
PSN_SETACTIVE notification is sent every time the apply button is pressed, thus init_dialog() gets
called again and sends an extra UDM_SETBUDDY message.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
programs/winecfg/theme.c