Click here to Skip to main content
15,928,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalpassing a math function as input of a program Pin
marouane miftah el kheir10-Feb-02 19:22
marouane miftah el kheir10-Feb-02 19:22 
GeneralRe: passing a math function as input of a program Pin
Christian Graus10-Feb-02 19:29
protectorChristian Graus10-Feb-02 19:29 
GeneralRe: passing a math function as input of a program Pin
marouane miftah el kheir10-Feb-02 20:05
marouane miftah el kheir10-Feb-02 20:05 
GeneralRe: passing a math function as input of a program Pin
Christian Graus10-Feb-02 20:09
protectorChristian Graus10-Feb-02 20:09 
GeneralRe: passing a math function as input of a program Pin
11-Feb-02 1:06
suss11-Feb-02 1:06 
GeneralRDO Problem Pin
vin10-Feb-02 18:46
vin10-Feb-02 18:46 
Generalusing CMenu class Pin
redneckCoder10-Feb-02 12:34
redneckCoder10-Feb-02 12:34 
GeneralRe: using CMenu class Pin
alex.barylski10-Feb-02 12:55
alex.barylski10-Feb-02 12:55 
According to msdn.

Declare a member of type CMenu in CFrameWnd derived class.

CMenu m_myMenu;

call m_myMenu AppendMenu() with paramters.

call your CWnd SetMenu() followed by a CMenu::Detach()

Call it's LoadMenu to use a resource.

From resource would be something like this I imagine.

//CMainFrame
CMenu myMenu;

//OnCreate
m_myMenu.LoadMenu(IDR_MAINMENU);
m_myMenu.SetMenu();
m_myMenu.Detach();


I don't know exactly where you'd create a menu, but OnCreate sound right.

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
Generalcontrol panel question Pin
10-Feb-02 12:12
suss10-Feb-02 12:12 
GeneralRe: control panel question Pin
Joaquín M López Muñoz10-Feb-02 20:01
Joaquín M López Muñoz10-Feb-02 20:01 
GeneralRe: control panel question Pin
10-Feb-02 23:30
suss10-Feb-02 23:30 
GeneralCHtmlView error... Pin
10-Feb-02 11:59
suss10-Feb-02 11:59 
Generalprogress bars from vc resourceeditor Pin
10-Feb-02 10:20
suss10-Feb-02 10:20 
GeneralRe: progress bars from vc resourceeditor Pin
Christian Graus10-Feb-02 10:40
protectorChristian Graus10-Feb-02 10:40 
GeneralRe: progress bars from vc resourceeditor Pin
10-Feb-02 11:05
suss10-Feb-02 11:05 
GeneralRe: progress bars from vc resourceeditor Pin
Christian Graus10-Feb-02 11:11
protectorChristian Graus10-Feb-02 11:11 
GeneralRe: progress bars from vc resourceeditor Pin
10-Feb-02 11:45
suss10-Feb-02 11:45 
GeneralRe: progress bars from vc resourceeditor Pin
Michael Dunn10-Feb-02 11:33
sitebuilderMichael Dunn10-Feb-02 11:33 
GeneralRe: progress bars from vc resourceeditor Pin
10-Feb-02 11:48
suss10-Feb-02 11:48 
GeneralRe: progress bars from vc resourceeditor Pin
Nish Nishant10-Feb-02 13:19
sitebuilderNish Nishant10-Feb-02 13:19 
Generalarguments Pin
10-Feb-02 9:36
suss10-Feb-02 9:36 
GeneralRe: arguments Pin
Rick York10-Feb-02 9:53
mveRick York10-Feb-02 9:53 
GeneralRe: arguments Pin
Nish Nishant10-Feb-02 16:27
sitebuilderNish Nishant10-Feb-02 16:27 
GeneralRe: arguments Pin
Rick York10-Feb-02 16:26
mveRick York10-Feb-02 16:26 
GeneralRe: arguments Pin
alex.barylski10-Feb-02 12:40
alex.barylski10-Feb-02 12:40 

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.