News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

REBARBAND

Started by ragdog, February 04, 2012, 04:18:09 PM

Previous topic - Next topic

ragdog

Hi

I use a REBARBAND for my toolbar in my App and this contain a xp manifest.xml
in the resource

How i can set my rebarband in the old style (no theme) without remove the maifest.xml

I have look on MasmEd source without result found .

Have you an idea?

dedndave

i don't know that you can
my understanding is that a rebar requires ICC_COOL_CLASSES
which would imply that a manifest and InitCommonControlsEx is required for it to work across different OS's

ragdog

i don't know that you can

Yes it can MasmEd from Ketil can this all dialogs and menu have this style theme
but not this rebar.


Ok i try you solution thanks

dedndave

i am sorry - i misunderstood what you wanted to do

use a manifest.xml file like this
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <description>Windows Application</description>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32"
                        name="Microsoft.Windows.Common-Controls"
                        language="*"
                        processorArchitecture="X86"
                        version="6.0.0.0"
                        publicKeyToken="6595b64144ccf1df"
      />
    </dependentAssembly>
  </dependency>
</assembly>


add the manifest to the resource file
#include "\masm32\include\resource.h"

#ifndef  CREATEPROCESS_MANIFEST_RESOURCE_ID
#define  CREATEPROCESS_MANIFEST_RESOURCE_ID  1
#endif

#ifndef  RT_MANIFEST
#define  RT_MANIFEST                         24
#endif

CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifest.xml"


then, at the beginning of the program...
        push    ICC_COOL_CLASSES
        push    sizeof INITCOMMONCONTROLSEX
        INVOKE  InitCommonControlsEx,esp
        pop     ecx
        pop     edx