how to disable theme for a deskband's child control just like the windows address deskband?

luokai ren 1 Reputation point
2021-05-01T02:12:33.16+00:00

hi, windows 7, i'm creating a search box in the taskbar using the IDeskband interface, just like
93035-2.png,
but when i change the system theme, like Aero, my search box's color changed, the background color and the text in the edit control, just like
93027-1.png

this is not what i want. can anyone tell how to make it just like the first whatever the theme is?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,426 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,537 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Song Zhu - MSFT 906 Reputation points
    2021-05-03T06:16:43.783+00:00

    I think you need to refer to: Enabling Visual Styles and SetWindowTheme