Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have changed the File View/Explorer Pane in the MFC Feature Pack 2008,

Changed code to the following.
Java
CMyMainFrame::CreateDockingWindows()
{

	// Create file view
	CString strFileView;
	bNameValid = strFileView.LoadString(IDS_FILE_VIEW);
	ASSERT(bNameValid);
	//DWORD cbStyle = AFX_CBRS_CLOSE | AFX_CBRS_RESIZE | AFX_CBRS_AUTOHIDE | CBRS_FLOATING;

	if (!m_wndFileView.Create(strFileView, this, CRect(0, 0, 200, 200), TRUE, ID_VIEW_FILEVIEW, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CBRS_LEFT| CBRS_FLOAT_MULTI,AFX_CBRS_REGULAR_TABS,cbStyle))
	{
		TRACE0("Failed to create File View window\n");
		return FALSE; // failed to create
	}
}

The intention of inclusion of above commented line was to disable the Float option for the File/Explorer Pane.
On Including the above line, All The Short -cut Keys(ALT+F+N)....(ALT+E+X) etc., are disable using keyboard, albeit the Accelerator keys are functional(CTRL+O) etc.

My query is to find the workaround to implement the above construct(making File/Explorer Pane) Non-Floatable and to enable Short-cut Keys.

On commenting the above line, the Short -cut keys are functional though.
Any help in the above direction, would be much appreciable.

With regards,
VishalK_92
Posted
Updated 26-Oct-11 1:22am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900