Click here to Skip to main content
15,849,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert Ascii to hex.and hex to decimal. Pin
Rajesh R Subramanian1-May-09 0:59
professionalRajesh R Subramanian1-May-09 0:59 
QuestionHow to put a dialog into CDockablePane? Pin
eight30-Apr-09 9:50
eight30-Apr-09 9:50 
QuestionRe: How to put a dialog into CDockablePane? Pin
David Crow30-Apr-09 9:59
David Crow30-Apr-09 9:59 
AnswerRe: How to put a dialog into CDockablePane? Pin
Maximilien30-Apr-09 10:27
Maximilien30-Apr-09 10:27 
QuestionRe: How to put a dialog into CDockablePane? Pin
eight1-May-09 6:18
eight1-May-09 6:18 
AnswerRe: How to put a dialog into CDockablePane? Pin
Maximilien1-May-09 6:47
Maximilien1-May-09 6:47 
GeneralRe: How to put a dialog into CDockablePane? Pin
eight1-May-09 9:58
eight1-May-09 9:58 
GeneralRe: How to put a dialog into CDockablePane? Pin
ima2401098-Nov-09 3:20
ima2401098-Nov-09 3:20 
hi,
i've followed your step to pu dialog in dockpane but i can't see the dialog, i don't know how to fix this problem
Here are the steps that I took.

1. I've created a new MFC MDI project (DialogDockableTester), with Visual Studio style, maximized, and with ribbons.
2. I've created a dialog, IDD_TEMPDLG. Border = None, Style = Child.
3. Added class CTempDlg : public CDialog to use IDD_TEMPDLG
4. Added class CMyDockablePane : public CDockablePane
5. Overridden CMyDockablePane::OnCreate(LPCREATESTRUCT lpCreateStruct) with this
int CMyDockablePane::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDockablePane::OnCreate(lpCreateStruct) == -1)
return -1;

BOOL bRet = m_TempoDlg.Create(IDD_TEMPDLG, this);
ASSERT( bRet );
m_TempoDlg.ShowWindow(SW_SHOW);
return 0;

}
6. Added an object of CMyDockablePane, m_MyDockablePane in CMainFrame
7. Added this line in CMainFrame::OnCreate
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
// ....

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);
//...

}

in your steps you added an object of CTempDlg, m_TempDlg in CDialogDockableTesterView, and i don'nt know how to use m_TempDlg in CDialogDockableTesterView.cpp

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

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.