GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Apr-2008, 14:53
Kiriyama Kiriyama is offline
New Member
 
Join Date: Apr 2008
Posts: 1
Kiriyama is on a distinguished road

Need help with MFC AppWizard (exe) project. Help ASAP PLEASE!


The problem i am having currently is that I have to make a button that says 1. Then when you click on the "1", it goes away and it shows an "X" (w/o the quotes) in the same spot.

EX:


______ .......... ______
|,,,,1,,,,|*click*|,,,,X,,,,|
|______|..........|______|


I hope this is enough information for someone to help me out. Please Help me ASAP!!!
  #2  
Old 22-Apr-2008, 02:29
rvicta rvicta is offline
New Member
 
Join Date: Mar 2008
Posts: 7
rvicta is on a distinguished road

Re: Need help with MFC AppWizard (exe) project. Help ASAP PLEASE!


Declare a (CButton, if you don't like to use UpdateData) variable for your button and within your function definition for the button press just do the following statement

<cbuttonvar>.SetWindowTextA( "X" );

<cbuttonvar> would be your CButton variable name
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with visual studio project veronica_yick MS Visual C++ / MFC Forum 0 26-Feb-2007 00:22
project dependencies Dominic MS Visual C++ / MFC Forum 1 14-Nov-2005 02:25
Need help with Simple 1D Array coding project rho CPP / C++ Forum 2 27-Jun-2005 19:05
Community Project Proposal dsmith Miscellaneous Programming Forum 71 19-Feb-2005 12:26
Help: Eagle Scout Project BobbyDouglas Open Discussion Forum 3 17-Nov-2003 07:17

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:26.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.