News:

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

Control Resource Definition statements

Started by Rainstorm, February 12, 2008, 09:40:16 AM

Previous topic - Next topic

Rainstorm

hi,

It looks like there are more than 1 control resource definition statements (or so it seems) in the SDK & its a bit confusing...what to use where ? - for example for info on buttons.....I've posted some links here to the same stuff online.

http://msdn2.microsoft.com/en-us/library/aa381002(VS.85).aspx
lower down in that one there is a Button Control statement

buttonClass controlText, id

no width, height co ordinates etc are mentioned there..

================================================
http://msdn2.microsoft.com/en-us/library/aa380911(VS.85).aspx

CONTROL text, id, class, style, x, y, width, height [, extended-style]

that's another one
===============================================
http://msdn2.microsoft.com/en-us/library/aa380902(VS.85).aspx

control [[text,]] id, x, y, width, height[[, style[[, extended-style]]]][, helpId]
[{ data-element-1 [, data-element-2 [,  . . . ]]}]


In that one no class is mentioned

Thanks

ToutEnMasm

Hello,
There is many buttons usable
Quote
AUTO3STATE, AUTOCHECKBOX, AUTORADIOBUTTON, CHECKBOX, PUSHBOX, PUSHBUTTON, RADIOBUTTON, STATE3, or USERBUTTON.
There is several maner of writing them in a resource.
In a windows,there is only createwindowex.It's not confusing !.
But where createwindowex seeems less confusing,you must deal with the many styles and it's confusing also.

Find some samples and it will be more clear.



Rainstorm

..I was looking at the resource definitions in the \masm32\examples\exampl01\resdlg\ folder, the other dialog examples seem to be in memory templates.

toutenasm wrote
QuoteThere is several maner of writing them in a resource..
yes i just wanted to get that sorted out, since am at it..

t  y~~~


ToutEnMasm


Coming with the masm32 package,there is rc.hlp to answer your questions.
You can also use a resource editor to have samples.