could someone plz tell me how to put checkboxes on a window? i would like about 6? thanx
Posted on 2001-04-13 08:01:00 by Kezza
this is a good way to make checkBox's szText chkClass,"BUTTON" invoke CreateWindowEx,0, ADDR chkClass, 0, BS_AUTOCHECKBOX or WS_VISIBLE or WS_CHILD or BS_NOTIFY, x,y,wd,ht,hParent,ID, hInstance,NULL
Posted on 2001-04-13 08:31:00 by Zcoder
thanks for your help!!
Posted on 2001-04-13 09:04:00 by Kezza
i cant seem to get it working?? where is: szText chkClass,"BUTTON" meant to go!?? thanks
Posted on 2001-04-13 09:19:00 by Kezza
Kezza, szText is a macro and you should include the following in your local macro section:

szText MACRO Name, Text:VARARG
LOCAL lbl
jmp lbl
Name db Text,0
lbl:
ENDM
Then include Zcoder's snippet in your wndproc, in the section which responds to WM_CREATE messages. --4oh4
Posted on 2001-04-13 09:59:00 by 4oh4
Hi there, the szText is actually not a real command but a macro which you can find in many of the examples in Icz's and others' progs.

szText MACRO Name, Text:VARARG
  LOCAL lbl
    jmp lbl
      Name db Text,0
    lbl:
ENDM
How to use it is quite simple. You just use the szText statement with a variable name and a value (in the example chkClass as the variable you can access later and with "BUTTON" as the value). This has nearly the same effect as you would go and define

.DATA
...
  chkClass   db   "BUTTON",0
...
. So, just take the macro I gave you above and plunge it before the .DATA section in your code. Everything should work fine then! Stefan
Posted on 2001-04-13 10:04:00 by Stefan Krause
Ahh, shit!! I already feared that it took me too much time to write this down and as everybody can see 4oh4 has been 5 Minutes faster. But trust me: I have been writing at this moment so I had the same solution :D Anyway, my response is longer and more detailed :P Stefan
Posted on 2001-04-13 16:22:00 by Stefan Krause
Oh sure Stefan. We ALL believe you there
Posted on 2001-04-13 16:52:00 by Ernie
Hey Ernie, I'll bet, that there are some people out on this forum who really trust me with what I say and they don't make jokes about me *grrr* EDIT: Next time I will just post one sign in the message to get my place in the thread and then I add the text into it. I hope noone cares about ..hmm.. let's say 10 This message was edited by ......... Stefan This message was edited by Stefan Krause, on 4/13/2001 5:55:27 PM
Posted on 2001-04-13 17:52:00 by Stefan Krause
Bad custom - put data in .code section. Flashes pipes. You could do it by ... here is some code .data txt db 'Some text',0 .code If you don't want to jump to the .data section every time. Or could write the same macro but with szText name,txt:VARARG .data name db txt,0 .code endm 1. It produce less size code 2. It doesn't need clocks for the jmp 3. It doesn't flash pipes.
Posted on 2001-04-16 02:16:00 by The Svin