Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing on a device independent bitmap Pin
Christian Graus4-Dec-02 9:55
protectorChristian Graus4-Dec-02 9:55 
GeneralRe: Drawing on a device independent bitmap Pin
Paul M Watt4-Dec-02 14:44
mentorPaul M Watt4-Dec-02 14:44 
GeneralDisplaying Image From Data Array Pin
Rooster764-Dec-02 4:51
Rooster764-Dec-02 4:51 
GeneralRe: Displaying Image From Data Array Pin
Maximilien4-Dec-02 4:54
Maximilien4-Dec-02 4:54 
GeneralRe: Displaying Image From Data Array Pin
Chris Losinger4-Dec-02 4:58
professionalChris Losinger4-Dec-02 4:58 
GeneralRe: Displaying Image From Data Array Pin
Roger Allen4-Dec-02 5:05
Roger Allen4-Dec-02 5:05 
GeneralRe: Displaying Image From Data Array Pin
Chris Losinger4-Dec-02 5:07
professionalChris Losinger4-Dec-02 5:07 
QuestionHow to Get the ChildWnd's CWnd* of Static SplitterWnd Pin
zhdleonid4-Dec-02 4:45
zhdleonid4-Dec-02 4:45 
In CMainFrame file,
I defined CSplitterWnd m_wndSplitter;

and Split a Docounment into two View.
here is code:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) <br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
	m_wndSplitter.CreateStatic(this,1,2);<br />
<br />
        m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CMyFindDialogView),CSize(400,400),pContext);<br />
	m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CMyFindDialogView),CSize(400,400),pContext);<br />
	<br />
	return 1;<br />
	//return CFrameWnd::OnCreateClient(lpcs, pContext);<br />
}


In A NEW CLASS ,
I am do :
#include "MainFrm.h" in it's cpp header.

and
i want to do :
<br />
CWnd* m_pHexWnd = CMainFrame::m_wndSplitter.GetPane(0,1);<br />
//want use a function to get the SplitterWnd'CWnd.<br />
but faied. //: error C2228: left of '.GetPane' must have class/struct/union type


how to do it?

explain: i want get the CWnd* of SplitterWnd'CWnd.
because ,i want use it in a Create(,parameters,A CWnd*) Function.

i feel good.
AnswerRe: How to Get the ChildWnd's CWnd* of Static SplitterWnd Pin
valikac4-Dec-02 9:59
valikac4-Dec-02 9:59 
GeneralRe: How to Get the ChildWnd's CWnd* of Static SplitterWnd Pin
zhdleonid4-Dec-02 15:14
zhdleonid4-Dec-02 15:14 
GeneralGetClientRect disparity Pin
RalfPeter4-Dec-02 3:59
RalfPeter4-Dec-02 3:59 
GeneralRe: GetClientRect disparity Pin
Roger Allen4-Dec-02 4:39
Roger Allen4-Dec-02 4:39 
GeneralRe: GetClientRect disparity Pin
RalfPeter4-Dec-02 6:06
RalfPeter4-Dec-02 6:06 
GeneralTaskbar Pin
Victor Boctor4-Dec-02 2:36
Victor Boctor4-Dec-02 2:36 
GeneralRe: Taskbar Pin
Michael P Butler4-Dec-02 3:56
Michael P Butler4-Dec-02 3:56 
GeneralRe: Taskbar Pin
Ravi Bhavnani4-Dec-02 5:03
professionalRavi Bhavnani4-Dec-02 5:03 
GeneralNeed advice for modal window Pin
Johann Gerell4-Dec-02 2:23
Johann Gerell4-Dec-02 2:23 
GeneralRe: Need advice for modal window Pin
Paul M Watt4-Dec-02 4:20
mentorPaul M Watt4-Dec-02 4:20 
GeneralRe: Need advice for modal window Pin
Alvaro Mendez4-Dec-02 5:29
Alvaro Mendez4-Dec-02 5:29 
GeneralInternationalisation Pin
Patje4-Dec-02 2:12
Patje4-Dec-02 2:12 
GeneralRe: Internationalisation Pin
Maximilien4-Dec-02 2:56
Maximilien4-Dec-02 2:56 
GeneralRe: Internationalisation Pin
Patje4-Dec-02 3:21
Patje4-Dec-02 3:21 
QuestionShowing memory contents into a HTMLView? Pin
Joan M4-Dec-02 1:29
professionalJoan M4-Dec-02 1:29 
AnswerRe: Showing memory contents into a HTMLView? Pin
Chris Losinger4-Dec-02 4:26
professionalChris Losinger4-Dec-02 4:26 
GeneralRe: Showing memory contents into a HTMLView? Pin
J Patel4-Dec-02 8:09
J Patel4-Dec-02 8:09 

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.