Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Yohomyth

MFC: ON_COMMAND

This topic is 5407 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m fairly new to MFC and I was wondering what class has ON_COMMAND as a message. I tried it on my CWinApp and CFrameWnd classes but it didn''t work. I need this for menus and push-buttons. Any help will be appreciated. "Solutions are not the answer." - Richard Nixon

Share this post


Link to post
Share on other sites
Advertisement
CWnd allows you to override OnCommand() and since CFrameWnd is a child of CWnd it too should allow you to override OnCommand().


Thanks Salsa!Colin Jeanne | Invader''s Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud

Share this post


Link to post
Share on other sites
What exactly are you trying to do? If you need to map a command to a function in MFC, then add an event handler to it in the appropriate class (if you''re using MS VS.NET just right click on the interface object and Add Event Handler)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!