Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button control

Status
Not open for further replies.

peterve

IS-IT--Management
Joined
Mar 19, 2000
Messages
1,348
Location
NL
Hi,

I'm a perl/VB and (beginner) C++ programmer - which is working well - but I'm having some problems with the Visual C++ control-specific syntax.
(Mostly because I'm used to VB...)
Anyways, I'm trying to do the following :

Form, 2 buttons
When I click button 1, button 1 must be disabled, button 2 must be enabled
When I click button 2, button 1 must be enabled, button 2 must be disabled

THis was really easy in VB, but I don't seem to find how to do this in VC++...

Any help would be greatly appreciated...

Thanks

P

--------------------------------------------------------------------
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
add a messaeg handle for your button and use
yourButton->EnableWindow(TRUE);//to enable
or
yourButton->EnableWindow(FALSE);//to disable

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Perfect ! thanks

--------------------------------------------------------------------
--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top