News:

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

CB_SETCUEBANNER Message

Started by -Alex-, December 06, 2010, 10:37:06 PM

Previous topic - Next topic

Coma

-Alex-
your test.zip is realy buggy, i.e. usingg doublewords for a text buffer and also you use offset instead of addr with invoke statement ...

Ok, i can not further test it because i'm using winxp, but maybe you should create another control for example an edit control so that the combobox don't have the focus on startup.

Microsoft said :By default, the cue banner also disappears when the edit control or combo box receives focus.
Coma Homepage 20:00-23:00 GMT+2 --- http://ge2001.dyndns.org:44792

-Alex-

Buggy because i basically ripped the code from the original project and made some things around.
As for ur Sample, i still dont see any banner: http://screenshotuploader.com/s/wgYLp8ZG6XW
Is it possible that its just on my end? I tested everything, same result.

Coma

Ok,
Same picture on my system, but i use xp and CB_SETCUEBANNER is supported from vista upwards.
So, it was an idea to remove the focus, but i can't test it.
Maybe another guy find a solution.

ciao

Coma Homepage 20:00-23:00 GMT+2 --- http://ge2001.dyndns.org:44792

-Alex-

I solved it now on my own.

1) Make a manifest like this

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="Cool.App"
    type="win32"
/>
<description>Ultimate Mindfuck!</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>

2) Add this to .rc file

1 24 DISCARDABLE "cool.app.xml"

Thats all, no need for InitCommonControls or comctl32 at all, and u can use CB_SETCUEBANNER in your app.