Click here to Skip to main content
15,915,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The thing is in the tree Pin
Rage4-Jun-02 21:18
professionalRage4-Jun-02 21:18 
GeneralRe: The thing is in the tree Pin
4-Jun-02 21:29
suss4-Jun-02 21:29 
GeneralThread blocking interface Pin
Hans Ruck4-Jun-02 6:17
Hans Ruck4-Jun-02 6:17 
GeneralRe: Thread blocking interface Pin
Tomasz Sowinski4-Jun-02 6:41
Tomasz Sowinski4-Jun-02 6:41 
GeneralRe: Thread blocking interface Pin
Hans Ruck4-Jun-02 6:43
Hans Ruck4-Jun-02 6:43 
GeneralRe: Thread blocking interface Pin
Tomasz Sowinski4-Jun-02 6:48
Tomasz Sowinski4-Jun-02 6:48 
GeneralRe: Thread blocking interface Pin
Hans Ruck4-Jun-02 7:09
Hans Ruck4-Jun-02 7:09 
GeneralSingle document in MDI Pin
Haakon S.4-Jun-02 6:14
Haakon S.4-Jun-02 6:14 
I have an application with many different views, but I want to have only a single document open for a process. How can I best block OnFileOpen() and OnFileNew()?

1. I have tried OnUpdate in my CMainFrame by using CCmdUI. Can't make it work.

2. I override the OnFileOpen() and OnFileNew() to check if a document is already active. But if I use

CDocument* pDoc=((CFrameWnd*)m_pMainWnd)->GetActiveDocument();

I always get a NULL pointer ?? WTF | :WTF:

Regards, Haakon S.




GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 6:13
Tomasz Sowinski4-Jun-02 6:13 
GeneralRe: Single document in MDI Pin
Haakon S.4-Jun-02 6:26
Haakon S.4-Jun-02 6:26 
GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 6:27
Tomasz Sowinski4-Jun-02 6:27 
GeneralRe: Single document in MDI Pin
Haakon S.4-Jun-02 7:38
Haakon S.4-Jun-02 7:38 
GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 23:32
Tomasz Sowinski4-Jun-02 23:32 
GeneralRe: Single document in MDI Pin
Ed Gadziemski4-Jun-02 14:52
professionalEd Gadziemski4-Jun-02 14:52 
GeneralEdit box with units Pin
Ali Asi4-Jun-02 5:56
Ali Asi4-Jun-02 5:56 
GeneralRe: Edit box with units Pin
Haakon S.4-Jun-02 8:46
Haakon S.4-Jun-02 8:46 
GeneralResource ID's at runtime Pin
Aaron Schaefer4-Jun-02 5:39
Aaron Schaefer4-Jun-02 5:39 
GeneralRe: Resource ID's at runtime Pin
Joaquín M López Muñoz4-Jun-02 6:23
Joaquín M López Muñoz4-Jun-02 6:23 
GeneralRe: Resource ID's at runtime Pin
Aaron Schaefer4-Jun-02 6:22
Aaron Schaefer4-Jun-02 6:22 
Generalstepping over api calls causes exceptions Pin
moredip4-Jun-02 5:40
moredip4-Jun-02 5:40 
GeneralRe: stepping over api calls causes exceptions Pin
dazinith4-Jun-02 5:47
dazinith4-Jun-02 5:47 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 6:00
moredip4-Jun-02 6:00 
GeneralRe: stepping over api calls causes exceptions Pin
dazinith4-Jun-02 6:07
dazinith4-Jun-02 6:07 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 6:22
moredip4-Jun-02 6:22 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 6:25
Rama Krishna Vavilala4-Jun-02 6:25 

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.