flat assembler
Message board for the users of flat assembler.

Index > Windows > Hide item (newbie)

Author
Thread Post new topic Reply to topic
ansik



Joined: 09 Dec 2005
Posts: 6
ansik
how to hide this this item on button click?
Code:
    dialogitem 'BUTTON','',ID_RAMKA,10,40,140,100,WS_VISIBLE+BS_GROUPBOX
    

and how to unhide it on click other button?
Post 09 Dec 2005, 14:50
View user's profile Send private message Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
hi ansik,
welcome you to this superb fasm board.
regarding ur question,

Quote:
how to hide this this item on button click?

so, u need to know how to hide or disable a button.
and how to do it when that button was clicked.

so, i assumed your button was identified as ID_RAMKA, so what you need to do first is to get the handle of that button. when ur window message loop received the BN_CLICKED message from ID_RAMKA, you just need to use the SetWindowLong Function as documented here http://tinyurl.com/2ob6d

eg. in visualbasic here
http://www.vb-helper.com/howto_change_window_style.html

list of window styles here
http://tinyurl.com/9eccu
Post 09 Dec 2005, 16:45
View user's profile Send private message Visit poster's website Reply with quote
ansik



Joined: 09 Dec 2005
Posts: 6
ansik
thanx. i have done it by myself yet Smile
Code:
...
invoke GetDlgItem,[hwnddlg],ID_RAMKA
invoke ShowWindow,eax,SW_SHOWNORMAL
...
invoke GetDlgItem,[hwnddlg],ID_RAMKA
invoke ShowWindow,eax,SW_HIDE
...
    

Smile
Post 09 Dec 2005, 17:46
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
You're a quick learner Smile
Post 10 Dec 2005, 11:01
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.