Click here to Skip to main content
15,918,668 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp! determine if ADO Field is PK or FK Pin
devvvy26-Nov-02 10:34
devvvy26-Nov-02 10:34 
GeneralConverting C++ files to Visual C++ files Pin
Jennic26-Nov-02 8:26
Jennic26-Nov-02 8:26 
GeneralRe: Converting C++ files to Visual C++ files Pin
Paul M Watt26-Nov-02 9:12
mentorPaul M Watt26-Nov-02 9:12 
GeneralRe: Converting C++ files to Visual C++ files Pin
perlmunger26-Nov-02 12:08
perlmunger26-Nov-02 12:08 
GeneralRe: Converting C++ files to Visual C++ files Pin
valikac26-Nov-02 15:37
valikac26-Nov-02 15:37 
QuestionProgramable State Machine, XML? Pin
Jawache26-Nov-02 6:35
Jawache26-Nov-02 6:35 
AnswerRe: Programable State Machine, XML? Pin
RedZenBird26-Nov-02 6:46
RedZenBird26-Nov-02 6:46 
Generala little lost with MainFrame Pin
NickOne26-Nov-02 6:32
NickOne26-Nov-02 6:32 
Hello,


I am a little lost with some code. I have an MDI application without Doc/View Support
The code for File->New is the following (by default).

CMainFrame *pFrame = (CMainFrame*)AfxGetMainWnd() ;

// create a new MDI child window
pFrame->CreateNewChild(
RUNTIME_CLASS(CChildFrame), IDR_NICKMITYPE, m_hMDIMenu, m_hMDIAccel);

I want to open a bitmap and have it appear in this new window, yet it appears in the background of the project. How can I get the View to be set to this new window I made and not the background. For some reason, if I call pFrame->GetView() and then retrieve the buffer where my bitmap is, it puts it to the background. I really want to put in this new window, and am lost on how to do that. Can anyone give me any advice or point me to some articales or something that I could use to figure this out?

Thanks a whole bunch,

NickOne
GeneralDrawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 6:25
Crercio O. Silva26-Nov-02 6:25 
GeneralRe: Drawing line conneting two dialogs Pin
Nick Parker26-Nov-02 6:33
protectorNick Parker26-Nov-02 6:33 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:08
Crercio O. Silva26-Nov-02 13:08 
GeneralRe: Drawing line conneting two dialogs Pin
Nick Parker26-Nov-02 17:06
protectorNick Parker26-Nov-02 17:06 
GeneralRe: Drawing line conneting two dialogs Pin
Scott H. Settlemier26-Nov-02 7:03
Scott H. Settlemier26-Nov-02 7:03 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:05
Crercio O. Silva26-Nov-02 13:05 
GeneralRe: Drawing line conneting two dialogs Pin
Maximilien26-Nov-02 7:46
Maximilien26-Nov-02 7:46 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:03
Crercio O. Silva26-Nov-02 13:03 
GeneralRe: Drawing line conneting two dialogs Pin
Maximilien26-Nov-02 15:20
Maximilien26-Nov-02 15:20 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva27-Nov-02 1:45
Crercio O. Silva27-Nov-02 1:45 
GeneralThreads Pin
Ruca26-Nov-02 5:59
Ruca26-Nov-02 5:59 
GeneralRe: Threads Pin
Roger Stewart26-Nov-02 6:23
professionalRoger Stewart26-Nov-02 6:23 
GeneralRe: Threads Pin
Ruca27-Nov-02 0:28
Ruca27-Nov-02 0:28 
GeneralTreeView Pin
act_x26-Nov-02 5:24
act_x26-Nov-02 5:24 
GeneralRe: TreeView Pin
dima_t26-Nov-02 18:06
dima_t26-Nov-02 18:06 
GeneralCompiler Pin
Rage26-Nov-02 5:05
professionalRage26-Nov-02 5:05 
GeneralRe: Compiler Pin
berndg26-Nov-02 5:25
berndg26-Nov-02 5: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.