Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCControlBar ranting... Pin
Maximilien27-Nov-02 5:34
Maximilien27-Nov-02 5:34 
GeneralRe: CControlBar ranting... Pin
Shog927-Nov-02 5:50
sitebuilderShog927-Nov-02 5:50 
GeneralGDI Question Pin
Selevercin27-Nov-02 5:15
Selevercin27-Nov-02 5:15 
GeneralRe: GDI Question Pin
techno_guru27-Nov-02 5:36
techno_guru27-Nov-02 5:36 
GeneralRe: GDI Question Pin
Rick York27-Nov-02 5:55
mveRick York27-Nov-02 5:55 
GeneralRe: GDI Question Pin
Selevercin27-Nov-02 6:32
Selevercin27-Nov-02 6:32 
GeneralRe: GDI Question Pin
Rage27-Nov-02 20:39
professionalRage27-Nov-02 20:39 
QuestionHow do I access the View Pin
NickOne27-Nov-02 4:47
NickOne27-Nov-02 4:47 
Hello all,

I had a question regarding how to get to the View of a particular window. I created an MDI application without doc/view support. When I hit File->new, a new window appears thansk to this App Generated Code

CMainFrame* pFrame = STATIC_DOWNCAST(CMainFrame, m_pMainWnd);

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

My problem is that I wish to open a DIB into this new window. Everytime I open the DIB though, it goes to the background of my application and not to this new window. I have determied that this happens due to the fact that when I call GetView(), it returns &m_wndView. m_wndView is the view of the ChildView class, and hence it always appears as the background (right?). How can I get to the View of the Child Window that was created? Please help me out, or let me know if I am going about this in the right way.

I am thinking that what I should do is write a new view class, and have the DIB open into a new window using this view class. What do you guys think?

Thanks,

NickOne
GeneralPb with modeless Dialog in VS Add-in Pin
cnaudeau27-Nov-02 4:26
cnaudeau27-Nov-02 4:26 
GeneralEnable EditMenu for RichEdit Pin
Joerg Wiedenmann27-Nov-02 2:40
Joerg Wiedenmann27-Nov-02 2:40 
GeneralAbout Ole DB Pin
deffer27-Nov-02 1:50
deffer27-Nov-02 1:50 
QuestionHow can I do “text wrapping” for a text in a button control Pin
Hamzeh27-Nov-02 1:07
Hamzeh27-Nov-02 1:07 
AnswerRe: How can I do “text wrapping” for a text in a button control Pin
Jason Henderson27-Nov-02 3:11
Jason Henderson27-Nov-02 3:11 
AnswerRe: How can I do “text wrapping” for a text in a button control Pin
Roger Stewart27-Nov-02 3:24
professionalRoger Stewart27-Nov-02 3:24 
GeneralHelp on CryptoAPI under Windows 9x Pin
Anonymous27-Nov-02 0:58
Anonymous27-Nov-02 0:58 
GeneralCWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 0:51
Brian van der Beek27-Nov-02 0:51 
GeneralRe: CWnd::DestroyWindow assertion Pin
Rage27-Nov-02 1:37
professionalRage27-Nov-02 1:37 
GeneralRe: CWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 1:43
Brian van der Beek27-Nov-02 1:43 
GeneralRe: CWnd::DestroyWindow assertion Pin
Rage27-Nov-02 1:57
professionalRage27-Nov-02 1:57 
GeneralRe: CWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 2:04
Brian van der Beek27-Nov-02 2:04 
GeneralRe: CWnd::DestroyWindow assertion Pin
dabs27-Nov-02 2:44
dabs27-Nov-02 2:44 
GeneralRe: CWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 2:58
Brian van der Beek27-Nov-02 2:58 
GeneralList Control in place editing Pin
devvvy27-Nov-02 0:36
devvvy27-Nov-02 0:36 
GeneralRe: List Control in place editing Pin
dabs27-Nov-02 3:04
dabs27-Nov-02 3:04 
Generallogonuser with CreateProcessAsUser Pin
r i s h a b h s26-Nov-02 23:55
r i s h a b h s26-Nov-02 23:55 

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.