Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: send to the socket Pin
Naveen3-Oct-06 20:22
Naveen3-Oct-06 20:22 
AnswerRe: send to the socket Pin
ThatsAlok4-Oct-06 7:29
ThatsAlok4-Oct-06 7:29 
QuestionButtons problem Pin
radhika283-Oct-06 19:22
radhika283-Oct-06 19:22 
AnswerRe: Buttons problem Pin
_AnsHUMAN_ 3-Oct-06 19:24
_AnsHUMAN_ 3-Oct-06 19:24 
GeneralRe: Buttons problem Pin
ThatsAlok4-Oct-06 7:24
ThatsAlok4-Oct-06 7:24 
AnswerRe: Buttons problem Pin
Nibu babu thomas3-Oct-06 19:31
Nibu babu thomas3-Oct-06 19:31 
GeneralRe: Buttons problem Pin
radhika283-Oct-06 20:38
radhika283-Oct-06 20:38 
GeneralRe: Buttons problem Pin
Nibu babu thomas3-Oct-06 20:45
Nibu babu thomas3-Oct-06 20:45 
radhika28 wrote:
I have declared the following event handler void OnUpdateButton1(CCmdUI *pCmdUI); and i have added the following message map ON_UPDATE_COMMAND_UI(IDC_BUTTON1, OnUpdateButton1)and i have defined the above function as follows,
void CMCDilaogbar::OnUpdateButton1(CCmdUI *pCmdUI)
{
pCmdUI->Enable(TRUE);
}
But i am still getting the button as disabled.How can i move further.

Thanks


Open the dialog bar in resource view. Select the button press Ctrl + W to open the class wizard.

Select an event handler like BN_CLICKED. But make sure that you select the proper mainframe class as the class were you wish to add the event handler. Select Add function. This will add a function to the class. Click on edit code to edit the code for the button.

Now this should enable the dialog bar button. Hope this helps.


Nibu thomas
A Developer

Programming tips[^]  My site[^]

GeneralRe: Buttons problem Pin
radhika283-Oct-06 21:17
radhika283-Oct-06 21:17 
GeneralRe: Buttons problem Pin
Nibu babu thomas3-Oct-06 21:26
Nibu babu thomas3-Oct-06 21:26 
GeneralRe: Buttons problem Pin
radhika283-Oct-06 21:41
radhika283-Oct-06 21:41 
GeneralRe: Buttons problem Pin
Nibu babu thomas3-Oct-06 21:51
Nibu babu thomas3-Oct-06 21:51 
GeneralRe: Buttons problem Pin
ThatsAlok4-Oct-06 7:25
ThatsAlok4-Oct-06 7:25 
Questioncall stack and memory options in VS2005 Pin
mpk19793-Oct-06 19:13
mpk19793-Oct-06 19:13 
AnswerRe: call stack and memory options in VS2005 Pin
prasad_som3-Oct-06 19:44
prasad_som3-Oct-06 19:44 
AnswerRe: call stack and memory options in VS2005 Pin
ThatsAlok4-Oct-06 7:24
ThatsAlok4-Oct-06 7:24 
QuestionModification of the Project Multi Layer Perceptron Pin
Pitufo553-Oct-06 18:44
Pitufo553-Oct-06 18:44 
AnswerRe: Modification of the Project Multi Layer Perceptron Pin
Waldermort3-Oct-06 19:20
Waldermort3-Oct-06 19:20 
AnswerRe: Modification of the Project Multi Layer Perceptron Pin
Hamid_RT3-Oct-06 19:35
Hamid_RT3-Oct-06 19:35 
GeneralRe: Modification of the Project Multi Layer Perceptron Pin
Pitufo553-Oct-06 19:50
Pitufo553-Oct-06 19:50 
QuestionUpdating screen Pin
box_boy_scott3-Oct-06 14:51
box_boy_scott3-Oct-06 14:51 
AnswerRe: Updating screen Pin
Waldermort3-Oct-06 17:24
Waldermort3-Oct-06 17:24 
GeneralRe: Updating screen Pin
box_boy_scott4-Oct-06 15:52
box_boy_scott4-Oct-06 15:52 
AnswerRe: Updating screen Pin
Hamid_RT3-Oct-06 18:12
Hamid_RT3-Oct-06 18:12 
GeneralRe: Updating screen Pin
box_boy_scott4-Oct-06 15:50
box_boy_scott4-Oct-06 15:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.