Click here to Skip to main content
15,891,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there a way to draw standard controls to bitmap if they aren't on the screen? Pin
Entrase4-May-09 2:30
Entrase4-May-09 2:30 
GeneralRe: Is there a way to draw standard controls to bitmap if they aren't on the screen? Pin
Code-o-mat4-May-09 2:33
Code-o-mat4-May-09 2:33 
QuestionCheck for empty buffer Pin
CodingLover30-Apr-09 18:49
CodingLover30-Apr-09 18:49 
AnswerRe: Check for empty buffer Pin
Joe Woodbury30-Apr-09 19:15
professionalJoe Woodbury30-Apr-09 19:15 
GeneralRe: Check for empty buffer Pin
CPallini30-Apr-09 23:00
mveCPallini30-Apr-09 23:00 
GeneralRe: Check for empty buffer Pin
Rajesh R Subramanian30-Apr-09 23:40
professionalRajesh R Subramanian30-Apr-09 23:40 
GeneralRe: Check for empty buffer Pin
CPallini30-Apr-09 23:47
mveCPallini30-Apr-09 23:47 
GeneralRe: Check for empty buffer Pin
Rajesh R Subramanian30-Apr-09 23:57
professionalRajesh R Subramanian30-Apr-09 23:57 
AnswerRe: Check for empty buffer Pin
Fernando A. Gomez F.30-Apr-09 19:55
Fernando A. Gomez F.30-Apr-09 19:55 
GeneralRe: Check for empty buffer Pin
Joe Woodbury3-May-09 14:17
professionalJoe Woodbury3-May-09 14:17 
GeneralRe: Check for empty buffer Pin
Fernando A. Gomez F.3-May-09 17:47
Fernando A. Gomez F.3-May-09 17:47 
AnswerRe: Check for empty buffer Pin
Eytukan30-Apr-09 20:28
Eytukan30-Apr-09 20:28 
AnswerRe: Check for empty buffer Pin
CPallini30-Apr-09 22:58
mveCPallini30-Apr-09 22:58 
QuestionConvert Ascii to hex.and hex to decimal. Pin
Le@rner30-Apr-09 18:39
Le@rner30-Apr-09 18:39 
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 
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 
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 18:31
eight9-Nov-09 18:31 

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.