Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Own class like MessageBox Pin
toxcct24-Nov-04 7:05
toxcct24-Nov-04 7:05 
GeneralRe: Own class like MessageBox Pin
Eugene Pustovoyt24-Nov-04 8:05
Eugene Pustovoyt24-Nov-04 8:05 
GeneralRe: Own class like MessageBox Pin
toxcct24-Nov-04 8:14
toxcct24-Nov-04 8:14 
GeneralRe: Own class like MessageBox Pin
Eugene Pustovoyt24-Nov-04 9:27
Eugene Pustovoyt24-Nov-04 9:27 
GeneralLarge Document Pin
Anonymous24-Nov-04 6:41
Anonymous24-Nov-04 6:41 
GeneralRe: Large Document Pin
Jack Puppy24-Nov-04 7:00
Jack Puppy24-Nov-04 7:00 
GeneralRe: Large Document Pin
Anonymous24-Nov-04 9:55
Anonymous24-Nov-04 9:55 
GeneralCWinApp::OnFileNew Pin
Leyu24-Nov-04 6:17
Leyu24-Nov-04 6:17 
Is there any way to call the CWinApp::OnFileNew except from cliking on the menu item with the default ID_FILE_NEW ;
Because Of the fact the CWinApp::OnFileNew is a protected member function of CWinApp i Couldn't call AfxGetApp()->OnFileNew()
Then I tried
ON_REGISTERED_MESSAGE(MY_REGISTERED_MESSAGE,CWinApp::OnFileNew) and i posted the message from my CView function but didn't work as i expected.

So maybe i was thinking I could fake the effect of cliking on the the menu or pressing the accelerator combination so that i can have the result something like you know FireCommand(ID_FILE_NEW); then the handler of CWinApp ON_COMMAND(ID_FILE_NEW,CWinApp::OnFileNew) does the required job
Is there any way to get around this
Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:
GeneralRe: CWinApp::OnFileNew Pin
Jack Puppy24-Nov-04 6:48
Jack Puppy24-Nov-04 6:48 
GeneralRe: CWinApp::OnFileNew Pin
Ryan Binns24-Nov-04 17:09
Ryan Binns24-Nov-04 17:09 
GeneralIcon at corner of dialog and prop sheet Pin
Anonymous24-Nov-04 5:46
Anonymous24-Nov-04 5:46 
GeneralRe: Icon at corner of dialog and prop sheet Pin
thowra24-Nov-04 6:33
thowra24-Nov-04 6:33 
GeneralRe: Icon at corner of dialog and prop sheet Pin
toxcct24-Nov-04 6:54
toxcct24-Nov-04 6:54 
QuestionMDI current active view: how to? Pin
Guy Lecomte24-Nov-04 5:38
Guy Lecomte24-Nov-04 5:38 
AnswerRe: MDI current active view: how to? Pin
Joaquín M López Muñoz24-Nov-04 7:40
Joaquín M López Muñoz24-Nov-04 7:40 
GeneralRe: MDI current active view: how to? Pin
Guy Lecomte25-Nov-04 21:04
Guy Lecomte25-Nov-04 21:04 
GeneralMFC and Windows messages Pin
madretierra24-Nov-04 5:11
madretierra24-Nov-04 5:11 
GeneralPropertyPage help instantiating Pin
KingTermite24-Nov-04 4:30
KingTermite24-Nov-04 4:30 
GeneralRe: PropertyPage help instantiating Pin
Mike Danberg24-Nov-04 10:08
Mike Danberg24-Nov-04 10:08 
GeneralRe: PropertyPage help instantiating Pin
KingTermite30-Nov-04 4:24
KingTermite30-Nov-04 4:24 
GeneralThread sync will not compile Pin
Shay Harel24-Nov-04 4:24
Shay Harel24-Nov-04 4:24 
GeneralRe: Thread sync will not compile Pin
John M. Drescher24-Nov-04 5:14
John M. Drescher24-Nov-04 5:14 
GeneralRe: Thread sync will not compile Pin
Shay Harel24-Nov-04 5:47
Shay Harel24-Nov-04 5:47 
GeneralCDialog::DoModal in com. Assert failure when exiting doModal Pin
ido197524-Nov-04 4:19
ido197524-Nov-04 4:19 
Questionhow to use cryptography class in c++ Pin
Anonymous24-Nov-04 4:04
Anonymous24-Nov-04 4:04 

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.