Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFonts Pin
Anonymous24-Jul-02 8:06
Anonymous24-Jul-02 8:06 
Questionerror LNK2001?? Pin
Jh324-Jul-02 7:11
Jh324-Jul-02 7:11 
AnswerRe: error LNK2001?? Pin
Le centriste24-Jul-02 8:03
Le centriste24-Jul-02 8:03 
Generalfind in vector !!! Pin
Hadi Rezaee24-Jul-02 6:31
Hadi Rezaee24-Jul-02 6:31 
GeneralRe: find in vector !!! Pin
Joaquín M López Muñoz24-Jul-02 6:35
Joaquín M López Muñoz24-Jul-02 6:35 
GeneralRe: find in vector !!! Pin
Hadi Rezaee24-Jul-02 7:09
Hadi Rezaee24-Jul-02 7:09 
GeneralRe: find in vector !!! Pin
Phil Boyd24-Jul-02 8:32
Phil Boyd24-Jul-02 8:32 
Generala few questions Pin
NickOne24-Jul-02 6:27
NickOne24-Jul-02 6:27 
Hello all,

Thanks for the dialog tricks answers. They were very helpful. Thanks a bunch.

So now I got more questions:

1)This code from MSDN help files

void CMainFrame::OnFileNewchild()
{
CMDIChildWnd* pMDIChildWnd = new CMDIChildWnd;
VERIFY(pMDIChildWnd->Create(
NULL, // standard CMDIChildWnd class
_T("My MDIChildWnd"), // caption of MDI child window
WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW, // window styles
rectDefault, // default rectangle size
this)); // parent window; can be NULL



// the default PostNcDestroy handler will delete this object when destroyed
}

This will create a new MDI Child Window if I paste it into the Mainframe.cpp class of my MDI app. What I'd like to know, is how to pass the messages to it to get it to do something?

I'd like it to open Bitmaps, and I have a bitmap file viewer that will open Bitmaps into the default MDI child windows. How do I send a message to the onDraw function to draw into THIS custom MDI child window?? Basically, how can I get this Window to do somethign apart from appear?

If any of you know how to go about doing this and on top of that, want to let ME know Big Grin | :-D , I'd be mega-grateful. I really want to know how to do this. Does this involve creating a new Doc and view class? Arghhh...I'm kinda lost and some diretion would be nice


GeneralRe: a few questions Pin
Christian Graus24-Jul-02 12:35
protectorChristian Graus24-Jul-02 12:35 
GeneralPrinting a Report Via Microsoft Word Pin
SanShou24-Jul-02 5:59
SanShou24-Jul-02 5:59 
QuestionMultiple Inheritance? Pin
Peter Liddle24-Jul-02 5:58
Peter Liddle24-Jul-02 5:58 
AnswerRe: Multiple Inheritance? Pin
Tomasz Sowinski24-Jul-02 6:28
Tomasz Sowinski24-Jul-02 6:28 
GeneralRe: Multiple Inheritance? Pin
Philippe Mori24-Jul-02 7:55
Philippe Mori24-Jul-02 7:55 
AnswerRe: Multiple Inheritance? Pin
Joaquín M López Muñoz24-Jul-02 6:59
Joaquín M López Muñoz24-Jul-02 6:59 
Generalnewbie question about strcpy and pointers Pin
ns24-Jul-02 5:47
ns24-Jul-02 5:47 
GeneralRe: newbie question about strcpy and pointers Pin
Peter Liddle24-Jul-02 6:00
Peter Liddle24-Jul-02 6:00 
GeneralRe: newbie question about strcpy and pointers Pin
Chris Losinger24-Jul-02 6:01
professionalChris Losinger24-Jul-02 6:01 
GeneralRe: newbie question about strcpy and pointers Pin
ns24-Jul-02 6:26
ns24-Jul-02 6:26 
GeneralRe: newbie question about strcpy and pointers Pin
Ravi Bhavnani24-Jul-02 6:56
professionalRavi Bhavnani24-Jul-02 6:56 
GeneralRe: newbie question about strcpy and pointers Pin
SanShou24-Jul-02 6:35
SanShou24-Jul-02 6:35 
GeneralRe: newbie question about strcpy and pointers Pin
Philippe Mori24-Jul-02 8:03
Philippe Mori24-Jul-02 8:03 
GeneralTROLL QUESTION Pin
troll-124-Jul-02 5:32
susstroll-124-Jul-02 5:32 
GeneralRe: TROLL QUESTION Pin
Tomasz Sowinski24-Jul-02 5:46
Tomasz Sowinski24-Jul-02 5:46 
GeneralDialog Bar Docking Pin
BishGada24-Jul-02 5:30
BishGada24-Jul-02 5:30 
Questionhow can i switch between programs Pin
f.o.b24-Jul-02 5:30
f.o.b24-Jul-02 5:30 

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.