News:

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

How to enable/disable buttons?

Started by Mark Jones, June 24, 2005, 11:39:04 PM

Previous topic - Next topic

Mark Jones

This works for checkboxes but not buttons:

invoke SendDlgItemMessage,hWnd,IDC_BTN1,WM_ENABLE,1,0


The button style, BN_DISABLED, appears to be a flag and not a sendable dialog message. I must be expecially slow today, thanks for reading. :wink
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

Eóin

Use EnableWindow and DisableWindow.

P.S. Am I the only one whos feeld there's no smilie which is just a smile. I'd have like'd to finish off the above sentence with a nice friendly smile but :bg, :toothy & :P are all a bit exaggerated and seem condescending.

hutch--

Eóin,

:bg :toothy :P are just a bit cheeky, suits the member range in here well. I looked for a decent plain smile but all the ones I could find looked like the guy was faking it and had indigestion.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Mark Jones

#3
Thanks Eóin. (Say, how in the heck do you pronounce "Eóin" anyways?) :bg

I made a smile.gif with matching transparency from a wink.gif. Maybe hutch might like it. :)

[attachment deleted by admin]
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

hutch--

Mark,

Thanks I will have a look at the smilie.

Eóin appears to be an Gaelic version of Ian, John, Iannos, Juan, Yanny, Jenny, Jennifer which are all derived from the same word root.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Eóin

Yeah the three vowels running together makes it confusing to pronounce. Basically the "E" is silent, so you pronounce kinda like "O-in", or rather, exactly the same as in "to own something". In fact that "fadá" over the "o" is to indicate the extra emphasis it should have. Two other spelling variations with the same pronouncation are Eoghan and Owen, then second being the more common usage in the uk.

hutch-- Cheeky is the word I was looking, condescending was harsh. For condescending stick this boy-o :clap: at the end of a sarcastic comment.