Click here to Skip to main content
15,867,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert Ascii to hex.and hex to decimal. Pin
Rajesh R Subramanian30-Apr-09 20:47
professionalRajesh R Subramanian30-Apr-09 20:47 
GeneralRe: Convert Ascii to hex.and hex to decimal. Pin
Le@rner30-Apr-09 20:49
Le@rner30-Apr-09 20:49 
GeneralRe: Convert Ascii to hex.and hex to decimal. Pin
Rajesh R Subramanian30-Apr-09 23:59
professionalRajesh R Subramanian30-Apr-09 23:59 
QuestionHow to put a dialog into CDockablePane? Pin
eight30-Apr-09 8:50
eight30-Apr-09 8:50 
QuestionRe: How to put a dialog into CDockablePane? Pin
David Crow30-Apr-09 8:59
David Crow30-Apr-09 8:59 
AnswerRe: How to put a dialog into CDockablePane? Pin
Maximilien30-Apr-09 9:27
Maximilien30-Apr-09 9:27 
QuestionRe: How to put a dialog into CDockablePane? Pin
eight1-May-09 5:18
eight1-May-09 5:18 
AnswerRe: How to put a dialog into CDockablePane? Pin
Maximilien1-May-09 5:47
Maximilien1-May-09 5:47 
I just retried with a simple project, and I had to set the dialog visiblity.

int MyPage::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDockablePane::OnCreate(lpCreateStruct) == -1)
		return -1;

	BOOL bRet = myDialog.Create(IDD_DIALOG1, this);
	ASSERT( bRet );
	myDialog.ShowWindow(SW_SHOW);
	return 0;
}


In my mainframe :
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CMDIFrameWndEx::OnCreate(lpCreateStruct) == -1)
		return -1;

	CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));

	CMDITabInfo mdiTabParams;
	mdiTabParams.m_style = CMFCTabCtrl::STYLE_3D_ONENOTE;
	mdiTabParams.m_bActiveTabCloseButton = TRUE;
	mdiTabParams.m_bTabIcons = FALSE;
	mdiTabParams.m_bAutoColor = TRUE;
	mdiTabParams.m_bDocumentMenu = TRUE;
	EnableMDITabbedGroups(TRUE, mdiTabParams);

// ....

	CString s2("Page");
	if (!myPage.Create(s2, this, CRect(0, 0, 200, 200), TRUE, ID_OPERATION_PAGE, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CBRS_LEFT| CBRS_FLOAT_MULTI))
	{
		TRACE0("Failed to create objectPage\n");
		return FALSE; // failed to create
	}


	myPage.EnableDocking(CBRS_ALIGN_ANY);
	DockPane(&myPage);

	CDockingManager::SetDockingMode(DT_SMART);
	EnableAutoHidePanes(CBRS_ALIGN_ANY);
//...


This signature was proudly tested on animals.

GeneralRe: How to put a dialog into CDockablePane? Pin
eight1-May-09 8:58
eight1-May-09 8:58 
GeneralRe: How to put a dialog into CDockablePane? Pin
ima2401098-Nov-09 2:20
ima2401098-Nov-09 2:20 
GeneralRe: How to put a dialog into CDockablePane? Pin
eight9-Nov-09 18:31
eight9-Nov-09 18:31 
GeneralRe: How to put a dialog into CDockablePane? Pin
ima2401099-Nov-09 22:42
ima2401099-Nov-09 22:42 
Questionwinsock send blocks Pin
FotisSs30-Apr-09 8:16
FotisSs30-Apr-09 8:16 
QuestionI had an MDI application and want to change the background color of client area, please suggest Pin
rajeshbhushetty30-Apr-09 7:00
rajeshbhushetty30-Apr-09 7:00 
AnswerRe: I had an MDI application and want to change the background color of client area, please suggest Pin
led mike30-Apr-09 8:01
led mike30-Apr-09 8:01 
AnswerRe: I had an MDI application and want to change the background color of client area, please suggest Pin
David Crow30-Apr-09 8:32
David Crow30-Apr-09 8:32 
GeneralRe: I had an MDI application and want to change the background color of client area, please suggest Pin
rajeshbhushetty13-May-09 3:21
rajeshbhushetty13-May-09 3:21 
Questionconst void as return type Pin
crewchill30-Apr-09 6:16
crewchill30-Apr-09 6:16 
AnswerRe: const void as return type Pin
Stuart Dootson30-Apr-09 6:24
professionalStuart Dootson30-Apr-09 6:24 
GeneralRe: const void as return type Pin
crewchill30-Apr-09 9:33
crewchill30-Apr-09 9:33 
GeneralRe: const void as return type Pin
Stuart Dootson30-Apr-09 9:56
professionalStuart Dootson30-Apr-09 9:56 
AnswerRe: const void as return type Pin
led mike30-Apr-09 8:04
led mike30-Apr-09 8:04 
GeneralRe: const void as return type Pin
crewchill30-Apr-09 9:36
crewchill30-Apr-09 9:36 
QuestionRender multiple object in single view Pin
PRC30-Apr-09 3:26
PRC30-Apr-09 3:26 
QuestionRe: Render multiple object in single view Pin
David Crow30-Apr-09 3:33
David Crow30-Apr-09 3:33 

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.