Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about compilers! Pin
Hadi Rezaee23-Nov-03 17:19
Hadi Rezaee23-Nov-03 17:19 
GeneralRe: about compilers! Pin
shaddonah27-Nov-03 9:01
shaddonah27-Nov-03 9:01 
GeneralMFC Menu Graying. Pin
kiasu_kid23-Nov-03 14:44
kiasu_kid23-Nov-03 14:44 
GeneralRe: MFC Menu Graying. Pin
Terry O'Nolley23-Nov-03 14:49
Terry O'Nolley23-Nov-03 14:49 
GeneralRe: MFC Menu Graying. Pin
kiasu_kid23-Nov-03 14:59
kiasu_kid23-Nov-03 14:59 
GeneralRe: MFC Menu Graying. Pin
John R. Shaw23-Nov-03 15:59
John R. Shaw23-Nov-03 15:59 
GeneralRe: MFC Menu Graying. Pin
kiasu_kid23-Nov-03 18:26
kiasu_kid23-Nov-03 18:26 
GeneralRe: MFC Menu Graying. Pin
jbarton24-Nov-03 3:18
jbarton24-Nov-03 3:18 
The normal MFC way of enabling/disabling menu items during runtime is to implement the UPDATE_COMMAND_UI handler for the item.

To do this, use the class wizard to add an UPDATE_COMMAND_UI message handler for the particular menu item that you want to handle:
- On the "Message Maps" page, select the object id of the menu item that you want to control
- select the UPDATE_COMMAND_UI in the Messages window.
- Click on the "Add Function" button to add a handler for it.
- Click on the "Edit Code" button to goto the code for the newly added handler.

In the handler code, you can control whether the menu item is enabled or disabled as follows:
- To enable the menu item, call pCmdUI->Enable( TRUE );
- To disable the menu item, call pCmdUI->Enable( FALSE );
Questionhow could i draw an irregular dialog according to an image Pin
ttemp200223-Nov-03 14:26
ttemp200223-Nov-03 14:26 
AnswerRe: how could i draw an irregular dialog according to an image Pin
Prakash Nadar23-Nov-03 16:41
Prakash Nadar23-Nov-03 16:41 
AnswerRe: how could i draw an irregular dialog according to an image Pin
John R. Shaw23-Nov-03 16:57
John R. Shaw23-Nov-03 16:57 
GeneralSetWindowLong indicates blocked thread. Pin
suninwater23-Nov-03 13:42
suninwater23-Nov-03 13:42 
GeneralRe: SetWindowLong indicates blocked thread. Pin
Prakash Nadar23-Nov-03 16:47
Prakash Nadar23-Nov-03 16:47 
GeneralCreateDIBSection Pin
John R. Shaw23-Nov-03 12:58
John R. Shaw23-Nov-03 12:58 
GeneralRe: CreateDIBSection Pin
Terry O'Nolley23-Nov-03 13:24
Terry O'Nolley23-Nov-03 13:24 
GeneralRe: CreateDIBSection Pin
John R. Shaw23-Nov-03 14:14
John R. Shaw23-Nov-03 14:14 
GeneralRe: CreateDIBSection Pin
Terry O'Nolley23-Nov-03 14:42
Terry O'Nolley23-Nov-03 14:42 
GeneralRe: CreateDIBSection Pin
John R. Shaw23-Nov-03 15:35
John R. Shaw23-Nov-03 15:35 
GeneralModifying MFC document data Pin
aboutQ23-Nov-03 12:45
aboutQ23-Nov-03 12:45 
GeneralRe: Modifying MFC document data Pin
John R. Shaw23-Nov-03 13:25
John R. Shaw23-Nov-03 13:25 
GeneralRe: Modifying MFC document data Pin
Terry O'Nolley23-Nov-03 14:45
Terry O'Nolley23-Nov-03 14:45 
GeneralApplication Restoring Pin
dddfdf23-Nov-03 12:19
dddfdf23-Nov-03 12:19 
GeneralRe: Application Restoring Pin
John R. Shaw23-Nov-03 13:39
John R. Shaw23-Nov-03 13:39 
GeneralRe: Application Restoring Pin
bnn3nasdfasdfa24-Nov-03 2:06
bnn3nasdfasdfa24-Nov-03 2:06 
QuestionHow to bind data to DataGrid using CRecordset? Pin
bilas23-Nov-03 11:43
bilas23-Nov-03 11:43 

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.