Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange question about GetDocument Pin
Roger Allen23-Jan-03 6:11
Roger Allen23-Jan-03 6:11 
GeneralRe: Strange question about GetDocument Pin
ns23-Jan-03 6:12
ns23-Jan-03 6:12 
GeneralRe: Strange question about GetDocument Pin
Chris Richardson23-Jan-03 8:30
Chris Richardson23-Jan-03 8:30 
GeneralRe: Strange question about GetDocument Pin
ns23-Jan-03 8:41
ns23-Jan-03 8:41 
GeneralWM_MENUCOMMAND and menu items with no ID Pin
ns23-Jan-03 5:42
ns23-Jan-03 5:42 
GeneralRe: WM_MENUCOMMAND and menu items with no ID Pin
KaЯl23-Jan-03 5:51
KaЯl23-Jan-03 5:51 
GeneralRe: WM_MENUCOMMAND and menu items with no ID Pin
ns23-Jan-03 6:02
ns23-Jan-03 6:02 
GeneralRe: WM_MENUCOMMAND and menu items with no ID Pin
Roger Allen23-Jan-03 6:24
Roger Allen23-Jan-03 6:24 
ns wrote:
BTW how does one decide what number to assign to ID_MENU_START?
Take a look in your apps resource.h file and assign it there. Also make sure that none of the id's in the range are being used for anything else.


ns wrote:
Then if at a certain time I have only 50 menu items and I click one, then will the function OnMenuRange run without crashing?
This should be fine. The OnUpdateUI and OnCommand handlers only get called if the menu item actually exists. You can also tell for which item it is for by the parameter that is passed to the function. Just make sure you get the function prototypes right, as they are not done by class-wizard and have to be done manually.

ns wrote:
what if I needed a different handler to run for each menu item? ? I have no IDs
Farm the OnRanegCommand() id out to the correct function in this handler by looking at the command id passed to you.





Roger Allen
Sonork 100.10016

This is a multiple choice question, choose wisely
Why did the hedgehog cross the road?
A: To show he had guts?
B: To see his flat mate?

GeneralRe: WM_MENUCOMMAND and menu items with no ID Pin
ns23-Jan-03 6:38
ns23-Jan-03 6:38 
GeneralRe: WM_MENUCOMMAND and menu items with no ID Pin
KaЯl23-Jan-03 23:17
KaЯl23-Jan-03 23:17 
GeneralThank you!!!! Pin
ns24-Jan-03 3:03
ns24-Jan-03 3:03 
GeneralARGH! trying to add a combobox Pin
Ron H.23-Jan-03 5:33
Ron H.23-Jan-03 5:33 
QuestionWM_TIMER in a MFC Console App.. Possible? Pin
RobJones23-Jan-03 5:23
RobJones23-Jan-03 5:23 
AnswerRe: WM_TIMER in a MFC Console App.. Possible? Pin
Gary R. Wheeler23-Jan-03 6:04
Gary R. Wheeler23-Jan-03 6:04 
Generalwhat header do I use for countof() Pin
Anonymous23-Jan-03 7:52
Anonymous23-Jan-03 7:52 
GeneralRe: what header do I use for countof() Pin
Gary R. Wheeler23-Jan-03 10:21
Gary R. Wheeler23-Jan-03 10:21 
GeneralRe: what header do I use for countof() Pin
RobJones24-Jan-03 4:28
RobJones24-Jan-03 4:28 
GeneralOne more quick question.. Pin
RobJones24-Jan-03 7:01
RobJones24-Jan-03 7:01 
GeneralRe: One more quick question.. Pin
Gary R. Wheeler25-Jan-03 0:23
Gary R. Wheeler25-Jan-03 0:23 
GeneralKilling Connections Pin
OBRon23-Jan-03 5:01
OBRon23-Jan-03 5:01 
GeneralRe: Killing Connections Pin
Gary R. Wheeler23-Jan-03 6:19
Gary R. Wheeler23-Jan-03 6:19 
GeneralCapture screen Pin
jeremysay23-Jan-03 4:37
jeremysay23-Jan-03 4:37 
GeneralRe: Capture screen Pin
Paul M Watt23-Jan-03 5:05
mentorPaul M Watt23-Jan-03 5:05 
GeneralRe: Capture screen Pin
jeremysay23-Jan-03 5:26
jeremysay23-Jan-03 5:26 
GeneralRe: Capture screen Pin
Gary Kirkham23-Jan-03 6:05
Gary Kirkham23-Jan-03 6:05 

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.