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

C / C++ / MFC

 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 7:33
Rama Krishna Vavilala4-Jun-02 7:33 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 7:45
moredip4-Jun-02 7:45 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 7:51
Rama Krishna Vavilala4-Jun-02 7:51 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 8:06
moredip4-Jun-02 8:06 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 8:03
Rama Krishna Vavilala4-Jun-02 8:03 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 8:17
moredip4-Jun-02 8:17 
GeneralCMenu base items Pin
dazinith4-Jun-02 5:38
dazinith4-Jun-02 5:38 
GeneralRe: CMenu base items Pin
Rage4-Jun-02 6:12
professionalRage4-Jun-02 6:12 
This is a rather bad solution, but it works (if you use MFC)

Just register a windows message in the system message range with

#define IDM_MYMESSAGE 0x0011 in resource.h)


Then add this to your menu

pMenu->AppendMenu(MF_STRING, IDM_MYMESSAGE, "SayWoop");


Put this in your Message Map (in MyDlg.cpp, where MyDlg is your dialog)

ON_MESSAGE(IDM_MYMESSAGE, OnSayWoop)


and this in your MyDlg.h
afx_msg void OnSayWoop();


and then declare your function

void MyDlg::OnSayWoop()
{
blah blah
}

and then OnSayWoop() is done each time you choose OnSayWoop in the menu.

Well, i´m not pretty proud of this one, but it should work

~RaGE();
Generalgarbage using CFileDialog Pin
Luis E. Cuadrado4-Jun-02 5:17
Luis E. Cuadrado4-Jun-02 5:17 
GeneralRe: garbage using CFileDialog Pin
Tomasz Sowinski4-Jun-02 5:25
Tomasz Sowinski4-Jun-02 5:25 
GeneralRe: garbage using CFileDialog Pin
Luis E. Cuadrado5-Jun-02 1:25
Luis E. Cuadrado5-Jun-02 1:25 
Questionis GDI+ able to display BIG bitmaps ? Pin
jpg4-Jun-02 5:14
jpg4-Jun-02 5:14 
GeneralDX 8.1 Pin
Zizilamoroso4-Jun-02 4:53
Zizilamoroso4-Jun-02 4:53 
GeneralRe: DX 8.1 Pin
moredip4-Jun-02 5:42
moredip4-Jun-02 5:42 
GeneralRe: DX 8.1 Pin
Zizilamoroso4-Jun-02 6:33
Zizilamoroso4-Jun-02 6:33 
GeneralRe: DX 8.1 Pin
moredip4-Jun-02 7:23
moredip4-Jun-02 7:23 
GeneralRe: DX 8.1 Pin
Zizilamoroso4-Jun-02 23:06
Zizilamoroso4-Jun-02 23:06 
GeneralRe: DX 8.1 Pin
moredip5-Jun-02 8:17
moredip5-Jun-02 8:17 
GeneralADO question Pin
4-Jun-02 4:39
suss4-Jun-02 4:39 
GeneralRe: ADO question Pin
Daniel Turini4-Jun-02 4:47
Daniel Turini4-Jun-02 4:47 
GeneralIdea of How to Create Power Point looks like apps Pin
DLeo4-Jun-02 4:43
DLeo4-Jun-02 4:43 
GeneralRe: Idea of How to Create Power Point looks like apps Pin
Rage4-Jun-02 6:38
professionalRage4-Jun-02 6:38 
GeneralProcess Handle given Process ID Pin
mspitzer4-Jun-02 4:07
mspitzer4-Jun-02 4:07 
GeneralRe: Process Handle given Process ID Pin
Daniel Turini4-Jun-02 4:49
Daniel Turini4-Jun-02 4:49 
GeneralRe: Process Handle given Process ID Pin
mspitzer4-Jun-02 5:03
mspitzer4-Jun-02 5:03 

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.