How can I make XP-style ComboBox in ATL?

K

keandi

I'm very sad...

I made an ATL-composite control by Visual Studio 2005.
Just.. I compiled that....

And I made a HTML file... and I inserted the ATL object in HTML page.


I made manifest file...

resource type : 24 / id : 1

-- the file content ---------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly

xmlns="urn:schemas-microsoft-com:asm.v1"

manifestVersion="1.0">

<assemblyIdentity

processorArchitecture="x86"

version="5.1.0.0"

type="win32"

name="test.exe"/>

<description>Test Application</description>

<dependency>

<dependentAssembly>

<assemblyIdentity

type="win32"

name="Microsoft.Windows.Common-Controls"

version="6.0.0.0"

publicKeyToken="6595b64144ccf1df"

language="*"

processorArchitecture="x86"/>

</dependentAssembly>

</dependency>

</assembly>
 
R

Rob ^_^

Hi keandi,

I am guessing but by looking at the manifest it appears that your custom
control is inheriting from Winx Controls OCX and not the XP version of this
ocx. The ocx will contain the graphics to render your control in an XP style
(depending on the users desktop theme preferences)

Suggest you create your own version of the combo control and include your
own graphics in an XP style.

Don't forget that XP machines will render web documents with the current
Theme layout but from memory this does not apply to combo box controls (only
buttons I think)

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top