News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

How to subclass correctly?

Started by Corso, June 11, 2015, 11:51:03 PM

Previous topic - Next topic

dedndave

usually, to display toolbar icons, i don't actually use icons, per se
what i use is a bmp strip, with different icons

see the attached BMP file, renamed to ZIP for forum compatibility
also notice that the "enabled" and "disabled" versions of different buttons are seperate images in the strip
and - notice the "pinkish" color, which is used as a transparent color

the BMP file is stored as a resource in the EXE file
in this case, i think i used 256 color images

dedndave

i used my own custom button code (not required) to make fancy buttons, like those provided by .NET   :P

TouEnMasm

Hello,
You are using the Windows.inc of the masm32 package.
This one had made the bad choice to modify the structure instead of align them correctly.
Many problems on various usage come with this choice,not only with the controls.
But the controls are very diffcult to use with those headers
Here is a listview sample who don't use those include file.
http://masm32.com/board/index.php?topic=4528.msg48489#msg48489
The resizing of the column works without any code.
it is in 64 bits but the code isn't really different from the 32.
Fa is a musical note to play with CL

Corso

Hi again,

so till now I didn't play with any image strips so far instead to use icons. :)
So I got a question to WinASM + Windows.inc file.So I have seen that WinASM dosen't show me all options of Styles / ExStyles in my controls which I could enable & disable.Is that a bug of WinASM?

PS: Is there any method to fix my WM_GETTEXT problem (I did post before) at WM_CHAR check or have I to write any custom code for that?

Thanks again