Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to write text to the command prompt in Dlg based Appln. Pin
zxc893-Oct-06 19:58
zxc893-Oct-06 19:58 
AnswerRe: How to write text to the command prompt in Dlg based Appln. Pin
Naveen3-Oct-06 20:06
Naveen3-Oct-06 20:06 
QuestionRe: How to write text to the command prompt in Dlg based Appln. Pin
zxc893-Oct-06 20:24
zxc893-Oct-06 20:24 
AnswerRe: How to write text to the command prompt in Dlg based Appln. Pin
Naveen3-Oct-06 20:36
Naveen3-Oct-06 20:36 
AnswerRe: How to write text to the command prompt in Dlg based Appln. Pin
David Crow4-Oct-06 3:19
David Crow4-Oct-06 3:19 
GeneralRe: How to write text to the command prompt in Dlg based Appln. Pin
Naveen4-Oct-06 17:27
Naveen4-Oct-06 17:27 
QuestionRe: How to write text to the command prompt in Dlg based Appln. Pin
zxc894-Oct-06 21:13
zxc894-Oct-06 21:13 
Questionsend to the socket Pin
yijia_243-Oct-06 19:23
yijia_243-Oct-06 19:23 
AnswerRe: send to the socket Pin
Naveen3-Oct-06 19:51
Naveen3-Oct-06 19:51 
QuestionRe: send to the socket Pin
yijia_243-Oct-06 20:16
yijia_243-Oct-06 20:16 
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 

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.