create common control without visual styles

599 Views Asked by At

I use a standard application manifest to enable visual styles in my window controls (that is, I am using comctl32.dll v6).

Now for some compatibility reason I want some particular tooltip control to be created without visual styles. Turning off the visual styles for it using either CCM_SETVERSION, SetWindowTheme(m_hWnd,"","") or even SetThemeAppProperties(0) doesn't solve my problem

What I need is to load the old v5.x comctl32.dll and use it to instantiate that particular tooltip control. Supposedly mixing v5 and v6 controls is perfectly allowable, but all samples I found work for the premise that the application does NOT have a manifest and show how to use an activation context to force the v6 of common controls. I want the OPPOSITE, that is force v5.

I cannot find any v5 manifest I can use to instantiate the older version (using CreateActCtx as in this example). As the old comctl32.dll is just in the SYSTEM32 folder and not in winSXS, it should be easy to use it, but how?

thanks, nikos

0

There are 0 best solutions below