Click here to Skip to main content
15,923,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with multi threading Pin
Michael Dunn21-Dec-02 5:31
sitebuilderMichael Dunn21-Dec-02 5:31 
GeneralRe: Problem with multi threading Pin
Andreas Masur22-Dec-02 9:40
Andreas Masur22-Dec-02 9:40 
GeneralNew Class or not Pin
ColinDavies20-Dec-02 21:21
ColinDavies20-Dec-02 21:21 
GeneralRe: New Class or not Pin
Christian Graus21-Dec-02 0:19
protectorChristian Graus21-Dec-02 0:19 
GeneralRe: New Class or not Pin
ColinDavies21-Dec-02 11:58
ColinDavies21-Dec-02 11:58 
Generalsending keys to a directx/openGL application Pin
Cyberizen20-Dec-02 21:08
Cyberizen20-Dec-02 21:08 
QuestionDialog in a Dialog... or view in a dialog? Pin
Anonymous20-Dec-02 19:58
Anonymous20-Dec-02 19:58 
AnswerRe: Dialog in a Dialog... or view in a dialog? Pin
Pavel Klocek20-Dec-02 20:20
Pavel Klocek20-Dec-02 20:20 
You can embed a dialog in another one.
You create the embedded dialog as modeless in WM_INITDIALOG handler as a child window of the main dialog, then set it's size and position.

I use an unvisible placeholder control in resource editor to define size and position of the embedded dialog inside the main one.

Some code (MFC, m_nesteddlg is a CDialog derived class):
void CLineLinPrtPage::CreateNestedDialog()
{
  m_nestdlg->Create(m_nestdlg->GetID(),this);
  //umisteni a zobrazeni aktualniho dialogu	
  CRect r;
  GetDlgItem(IDC_PLACEHOLDER)->GetWindowRect(&r);
  ScreenToClient(&r);
  m_nestdlg->SetWindowPos(NULL,r.left,r.top,r.right-r.left,r.bottom-r.top,SWP_NOZORDER | SWP_NOACTIVATE);
  m_nestdlg->EnableWindow();
}


Pavel
Sonork 100.15206
GeneralRe: Dialog in a Dialog... or view in a dialog? Pin
Anonymous20-Dec-02 21:48
Anonymous20-Dec-02 21:48 
GeneralRe: Dialog in a Dialog... or view in a dialog? Pin
Pavel Klocek20-Dec-02 22:00
Pavel Klocek20-Dec-02 22:00 
GeneralRe: Dialog in a Dialog... or view in a dialog? Pin
Anonymous21-Dec-02 2:29
Anonymous21-Dec-02 2:29 
GeneralCWnd OnMouseMove problem! Pin
Alex H 198320-Dec-02 19:28
Alex H 198320-Dec-02 19:28 
GeneralRe: CWnd OnMouseMove problem! Pin
Alex H 198321-Dec-02 2:42
Alex H 198321-Dec-02 2:42 
GeneralCFormView in CDialog Pin
Anonymous20-Dec-02 17:49
Anonymous20-Dec-02 17:49 
GeneralRe: CFormView in CDialog Pin
Nish Nishant20-Dec-02 19:32
sitebuilderNish Nishant20-Dec-02 19:32 
GeneralRe: CFormView in CDialog Pin
Anonymous20-Dec-02 19:45
Anonymous20-Dec-02 19:45 
GeneralRe: CFormView in CDialog Pin
Anonymous20-Dec-02 20:01
Anonymous20-Dec-02 20:01 
Generalget the address of a proc Pin
king_of_the_world20-Dec-02 16:17
king_of_the_world20-Dec-02 16:17 
GeneralRe: get the address of a proc Pin
Jeff J20-Dec-02 17:30
Jeff J20-Dec-02 17:30 
GeneralRe: get the address of a proc Pin
king_of_the_world20-Dec-02 18:20
king_of_the_world20-Dec-02 18:20 
GeneralRe: get the address of a proc Pin
Jeff J21-Dec-02 18:26
Jeff J21-Dec-02 18:26 
GeneralDocking Windows and Toolbars Pin
djara20-Dec-02 12:51
djara20-Dec-02 12:51 
QuestionAnyone using dundas ultimate grid? Pin
User 988520-Dec-02 10:16
User 988520-Dec-02 10:16 
GeneralSAPI trouble Pin
twomagiclovers20-Dec-02 10:04
twomagiclovers20-Dec-02 10:04 
Generalstring reversal Pin
liboogie1920-Dec-02 9:36
liboogie1920-Dec-02 9:36 

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.