Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Structure to Function Pin
Joaquín M López Muñoz29-Jul-02 11:55
Joaquín M López Muñoz29-Jul-02 11:55 
GeneralRe: Structure to Function Pin
oscar_r30-Jul-02 2:48
oscar_r30-Jul-02 2:48 
GeneralRe: Structure to Function Pin
perlmunger30-Jul-02 10:56
perlmunger30-Jul-02 10:56 
GeneralTooltips on a CToolbar Pin
Gilfrog29-Jul-02 10:10
Gilfrog29-Jul-02 10:10 
Questionhow to access C..Doc var. from any class ? Pin
Fred D.29-Jul-02 9:54
Fred D.29-Jul-02 9:54 
AnswerRe: how to access C..Doc var. from any class ? Pin
Hydralisk29-Jul-02 16:47
Hydralisk29-Jul-02 16:47 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP29-Jul-02 19:10
JennyP29-Jul-02 19:10 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP29-Jul-02 19:33
JennyP29-Jul-02 19:33 
After trying the first example and it not working (see my previous post), I tried the following and it worked. I guess the first compiles, but the pointer points not to where the actual data is stored but rather an empty data structure? (Just my WAG.) It seems the "GetActiveFrame()" may be important. If someone could explain the technical reasons, I'd appreciate it. Thanks!

CTtDoc *pDoc=(CTtDoc *)((CMainFrame *)AfxGetApp()->m_pMainWnd)->GetActiveFrame()->GetActiveDocument();

JennyP
GeneralRe: how to access C..Doc var. from any class ? Pin
Fred D.30-Jul-02 5:01
Fred D.30-Jul-02 5:01 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP30-Jul-02 5:54
JennyP30-Jul-02 5:54 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP30-Jul-02 17:01
JennyP30-Jul-02 17:01 
GeneralRe: how to access C..Doc var. from any class ? Pin
JennyP30-Jul-02 18:05
JennyP30-Jul-02 18:05 
GeneralRe: how to access C..Doc var. from any class ? Pin
Fred D.31-Jul-02 3:28
Fred D.31-Jul-02 3:28 
GeneralRe: how to access C..Doc var. from any class ? Pin
Hydralisk30-Jul-02 19:07
Hydralisk30-Jul-02 19:07 
GeneralCapture Maximize/Minimize Pin
Tony Fontenot29-Jul-02 9:50
Tony Fontenot29-Jul-02 9:50 
GeneralRe: Capture Maximize/Minimize Pin
Joaquín M López Muñoz29-Jul-02 9:58
Joaquín M López Muñoz29-Jul-02 9:58 
GeneralAlt + F4 Pin
Anonymous29-Jul-02 9:46
Anonymous29-Jul-02 9:46 
GeneralRe: Alt + F4 Pin
Anonymous29-Jul-02 10:04
Anonymous29-Jul-02 10:04 
GeneralRe: Alt + F4 Pin
Roman Nurik29-Jul-02 18:19
Roman Nurik29-Jul-02 18:19 
GeneralRe: Alt + F4 Pin
Alexandru Savescu29-Jul-02 20:38
Alexandru Savescu29-Jul-02 20:38 
GeneralVariable Passing again... Pin
NickOne29-Jul-02 9:38
NickOne29-Jul-02 9:38 
GeneralRe: Variable Passing again... Pin
Joaquín M López Muñoz29-Jul-02 9:49
Joaquín M López Muñoz29-Jul-02 9:49 
GeneralRe: Variable Passing again... Pin
NickOne29-Jul-02 10:26
NickOne29-Jul-02 10:26 
GeneralRe: Variable Passing again... Pin
NickOne29-Jul-02 10:42
NickOne29-Jul-02 10:42 
GeneralKeeping a dialog on top Pin
Tony Fontenot29-Jul-02 8:39
Tony Fontenot29-Jul-02 8:39 

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.