File: port22.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (16 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<HTML>
<head><title>OnMenuCommand</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="topic12"></A><CENTER>
<A HREF="port.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="port14.htm#quickreference"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="port21.htm#topic11"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="port23.htm#topic13"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>OnMenuCommand</H2>
<P>
You need to replace this virtual function with a series of non-virtual functions, one for
each case of your old switch statement. Each function takes a wxCommandEvent&amp; argument.
Create an event table for your frame
containing EVT_MENU macros, and insert DECLARE_EVENT_TABLE() in your frame class, as
per the samples.<P>

</BODY></HTML>