Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFTP programming using Winsock. Possible? Pin
mineus5513-Dec-06 8:25
mineus5513-Dec-06 8:25 
AnswerRe: FTP programming using Winsock. Possible? Pin
Mark Salsbery13-Dec-06 8:37
Mark Salsbery13-Dec-06 8:37 
GeneralRe: FTP programming using Winsock. Possible? Pin
mineus5513-Dec-06 10:12
mineus5513-Dec-06 10:12 
GeneralRe: FTP programming using Winsock. Possible? Pin
kristmun14-Dec-06 20:12
kristmun14-Dec-06 20:12 
QuestionRounded Rectangular Button Pin
Super Hornet13-Dec-06 8:11
Super Hornet13-Dec-06 8:11 
AnswerRe: Rounded Rectangular Button Pin
PJ Arends13-Dec-06 8:41
professionalPJ Arends13-Dec-06 8:41 
AnswerRe: Rounded Rectangular Button Pin
Hamid_RT13-Dec-06 18:28
Hamid_RT13-Dec-06 18:28 
QuestionCSplitterWnd In A CView [modified] Pin
#realJSOP13-Dec-06 7:40
professional#realJSOP13-Dec-06 7:40 
Using VS2005/VC8:

I've tried the following, and all I get is a single-pane window with no client edge:

int CSplitterViewTestView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;

	CCreateContext context;
	memset(&context, 0, sizeof(CCreateContext));

	CRect cr;
	GetWindowRect(&cr);

	int nHeight = ::GetSystemMetrics(SM_CYSCREEN);
	// Create the main splitter with 2 rows and 1 columns
	if (!m_splitterWnd.CreateStatic(this, 2, 1))
	{
		AfxMessageBox("Error setting up splitter window", MB_ICONERROR);
		return FALSE;
	}

	context.m_pNewViewClass   = RUNTIME_CLASS(CGridCtrlView);
	if (!m_splitterWnd.CreateView(0, 0, RUNTIME_CLASS(CGridCtrlView), CSize(cr.Width(), nHeight), &context))
	{
		AfxMessageBox("(CGridCtrlView) Error setting up gridctrlview pane objects.", MB_ICONERROR);
		m_splitterWnd.DestroyWindow();
		return FALSE;
	}

	context.m_pNewViewClass   = RUNTIME_CLASS(CWaitingView);
	if (!m_splitterWnd.CreateView(1, 0, RUNTIME_CLASS(CWaitingView), CSize(cr.Width(), 0), &context))
	{
		AfxMessageBox("(CGridCtrlView) Error setting up waitingview pane objects.", MB_ICONERROR);
		m_splitterWnd.DestroyWindow();
		return FALSE;
	}

	m_splitterWnd.RecalcLayout();
	return 0;
}


I get no errors at all.


-- modified at 14:37 Wednesday 13th December, 2006
[EDIT]

If I change the CreateStatic call as follows:

if (!m_splitterWnd.CreateStatic(GetParent(), 2, 1))


The following anomalies appear (yes, more than one):

1) The toolbar doesn't display

2) The status bar doesn't display until I drag the bottom border of the app over something gray.

3) I can't get a the splitter bar to react until after I resize the window once.

4) After letting go of the splitterbar, I can't move it again.


[/EDIT]



"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: CSplitterWnd In A CView Pin
PJ Arends13-Dec-06 8:39
professionalPJ Arends13-Dec-06 8:39 
GeneralRe: CSplitterWnd In A CView Pin
#realJSOP13-Dec-06 8:45
professional#realJSOP13-Dec-06 8:45 
AnswerRe: CSplitterWnd In A CView Pin
Mark Salsbery13-Dec-06 8:46
Mark Salsbery13-Dec-06 8:46 
AnswerRe: CSplitterWnd In A CView Pin
Mark Salsbery13-Dec-06 8:57
Mark Salsbery13-Dec-06 8:57 
AnswerRe: CSplitterWnd In A CView Pin
led mike13-Dec-06 10:20
led mike13-Dec-06 10:20 
AnswerRe: CSplitterWnd In A CView Pin
Parvenza3-Jan-11 3:16
Parvenza3-Jan-11 3:16 
GeneralRe: CSplitterWnd In A CView Pin
#realJSOP3-Jan-11 6:29
professional#realJSOP3-Jan-11 6:29 
GeneralRe: CSplitterWnd In A CView Pin
Parvenza4-Jan-11 5:15
Parvenza4-Jan-11 5:15 
QuestionThe project about GHOST!!!!!? Pin
vnresolution13-Dec-06 4:33
vnresolution13-Dec-06 4:33 
AnswerRe: The project about GHOST!!!!!? Pin
Mark Salsbery13-Dec-06 5:23
Mark Salsbery13-Dec-06 5:23 
AnswerRe: The project about GHOST!!!!!? Pin
Sebastian Schneider13-Dec-06 5:26
Sebastian Schneider13-Dec-06 5:26 
GeneralRe: The project about GHOST!!!!!? Pin
vnresolution14-Dec-06 3:37
vnresolution14-Dec-06 3:37 
AnswerRe: The project about GHOST!!!!!? Pin
toxcct13-Dec-06 7:04
toxcct13-Dec-06 7:04 
GeneralRe: The project about GHOST!!!!!? Pin
Hamid_RT13-Dec-06 18:25
Hamid_RT13-Dec-06 18:25 
GeneralRe: The project about GHOST!!!!!? Pin
toxcct13-Dec-06 21:27
toxcct13-Dec-06 21:27 
GeneralRe: The project about GHOST!!!!!? Pin
Rajesh R Subramanian13-Dec-06 18:26
professionalRajesh R Subramanian13-Dec-06 18:26 
GeneralRe: The project about GHOST!!!!!? Pin
toxcct13-Dec-06 21:26
toxcct13-Dec-06 21:26 

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.