News:

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

Checkbox visibility

Started by Derry, August 23, 2005, 07:26:18 AM

Previous topic - Next topic

Derry

Hi all
Newbie question
How do I access the visible property of a checkbox at runtime
I don't wish to set it to gray with BST_INDETERMINATE
I want to make it visible or invisible depending on some condition
I have searched the forumĀ  :tdown
Thanks

Derry

Tedd

Use the ShowWindow function :wink
No snowflake in an avalanche feels responsible.

Derry

Hi Tedd
ShowWindow sets a windows state - minimized,maximized,hide etc
It's not for controls

Thanks anyway

Derry

ramguru

Every control: button,edit-box...is a window with some extra features, you may not realize it yet. Tedd is right :)

diablo2oo2

i also use ShowWindow to hide/show window controls.its very simple

invoke GetDlgItem,hwnd,CONTROL_ID
invoke ShowWindow,eax,SW_HIDE

Mark Jones

I'm curious, is that how "tabs" work internally? Just shows/hides blocks of controls?
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ramguru

Yes, this is also truth ,Mark Jones. There are 2 ways (AFAIK) it can be accomplished: you can show/hide every control; you can show/hide dialog that can hold plenty of them... The 2nd way is my favourite one.

Derry

Thanks diablo2oo2
problem solved - i also use ShowWindow to hide/show window controls.its very simple
when you know how :U
Derry