News:

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

Beta Template generator CG.EXE

Started by hutch--, May 15, 2010, 04:48:27 AM

Previous topic - Next topic

hutch--

I have been on and off working on this one for a while, its a later code design than the Prostart.exe in the masm32 project that uses a rebar conrol as the base for the toolbar. It creates a tiny 24 bit RGB tile as the background for the rebar and creates toolbar bitmaps in resolutions 24, 32, 48 and 64 pixel size. As there is no way of knowing what an end user requires for toolbar images, the ones built are 16 color numbers only and are fixed at 16 images so the creates asm project can have up to 16 buttons on the toolbar.

It will accept toolbar bitmaps in 16, 256 and RGB/a formats, I just have not tried 24 bit bitmaps so i don't know there.

It has the choice of fixed or sizable windows, with either the default client area or a seperate client window with matching sizing code. The toolbar can be reasonably easily adjusted for different image sizes, spacings, left alignment etc ... and its done with a set of equates at the head of the main source file.

IMPORTANT: The zip file comes with the latest version ogf RESOURCE.H and this needs to be put in the INCLUDE directory before the tool is run as the new template format needs a number of equates that were not in the older version.

The output includes an XML manifest file and a version control block in the RSRC.RC file, both of whicxh you would normally edit to put your own app data in.

NOTE: The attachment has been changed to the next version.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

hutch--

I have just changed the attachment in the top posting to the next beta version 4. The earlier version was generating too many WM_COMMAND messages for the toolbar as I did not filter the spaces out correctly. This version appears to be performing that task correctly.

The virtue of writing a manifest file and version block in the resource file is that it gives later OS versions and the AV scanners some chance of recognising the executable file. The size increase is relatively minor but the compatibility on later OS versions is considerably improved.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php