Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHTML to RTF Pin
6-Jun-01 0:22
suss6-Jun-01 0:22 
GeneralWizard bug? (DAO and Combo boxes.) Pin
Erik Essegard6-Jun-01 0:06
Erik Essegard6-Jun-01 0:06 
QuestionHow to print UNICODE string in Window 98? Pin
zhishao5-Jun-01 23:26
zhishao5-Jun-01 23:26 
AnswerRe: How to print UNICODE string in Window 98? Pin
Michael Dunn6-Jun-01 9:28
sitebuilderMichael Dunn6-Jun-01 9:28 
GeneralPopping up a message box from a library in C code used in a C++ program Pin
hearties5-Jun-01 21:48
hearties5-Jun-01 21:48 
GeneralRe: Popping up a message box from a library in C code used in a C++ program Pin
Michael P Butler7-Jun-01 0:44
Michael P Butler7-Jun-01 0:44 
GeneralPointer to parent dialog. Pin
David Fleming5-Jun-01 21:41
David Fleming5-Jun-01 21:41 
GeneralRe: Pointer to parent dialog. Pin
Christian Graus5-Jun-01 22:12
protectorChristian Graus5-Jun-01 22:12 
No need to ask why - it's an obvious need Smile | :)

The answer is to create the pointer when you need it, OR to put the #include for the pointer in your .cpp file and in the .h file declare a dummy class. At least that has worked for me, but in this specific case I would just grab it as I need it

CMainDlg * pMain = (CMainDlg*) GetParent(); ( or AfxGetMainWnd())

and away we go. The pointer is fresh out of the box, and the #include is in the cpp file. The only thing is to pass this as the parent when creating the dialog.


Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.

GeneralRe: Pointer to parent dialog. Pin
David Fleming6-Jun-01 23:43
David Fleming6-Jun-01 23:43 
GeneralProblem running SMTP as a WIN32 service Pin
Pramodh5-Jun-01 21:24
Pramodh5-Jun-01 21:24 
GeneralAuto Fill Html Forms/Fields Pin
5-Jun-01 20:09
suss5-Jun-01 20:09 
GeneralDisconnected Recordset Pin
yamini5-Jun-01 20:02
yamini5-Jun-01 20:02 
GeneralRe: Disconnected Recordset Pin
Mangesh Sardesai5-Jun-01 21:40
Mangesh Sardesai5-Jun-01 21:40 
GeneralRe: Disconnected Recordset Pin
yamini5-Jun-01 22:17
yamini5-Jun-01 22:17 
GeneralRe: Disconnected Recordset Pin
Mangesh Sardesai5-Jun-01 23:32
Mangesh Sardesai5-Jun-01 23:32 
GeneralRe: Disconnected Recordset Pin
yamini6-Jun-01 19:10
yamini6-Jun-01 19:10 
GeneralMMC Snapin Pin
5-Jun-01 17:02
suss5-Jun-01 17:02 
GeneralRe: MMC Snapin Pin
Igor Sukhov6-Jun-01 7:50
Igor Sukhov6-Jun-01 7:50 
Generalquestion about the X button of the title bar Pin
5-Jun-01 14:53
suss5-Jun-01 14:53 
GeneralRe: question about the X button of the title bar Pin
Michael Dunn5-Jun-01 16:40
sitebuilderMichael Dunn5-Jun-01 16:40 
GeneralRe: Check WindowProc function! Pin
Masaaki Onishi5-Jun-01 17:46
Masaaki Onishi5-Jun-01 17:46 
QuestionIs there any good class for Outlook-bar control ?? Pin
5-Jun-01 14:35
suss5-Jun-01 14:35 
AnswerRe: Is there any good class for Outlook-bar control ?? Pin
Ulf Öhlén5-Jun-01 20:48
Ulf Öhlén5-Jun-01 20:48 
Questionhow to call javascript functions from c++ Pin
5-Jun-01 12:27
suss5-Jun-01 12:27 
GeneralTabs on side, transparent dialog and disable radiobuttons Pin
Dennis Nilsson5-Jun-01 11:53
Dennis Nilsson5-Jun-01 11:53 

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.