Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog Box question!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a dialog box called IDD_DIALOG1 and I was wondering if I had an SDI application, how can I make the dialox box attach itself to the SDI's main view area....
 
You can like this

Firstly,

Add your code WM_LBUTTONDOWN event that has derived View
Class


and then Secondly Add Source(from your mainview class

in .cpp)


#include "you have Dialog header name.h"


lastly, within from previous added WM_LBUTTONDOWN event

like add next line
=> (Let's your drived Dialog Class name assume that CJustDlg)

void CJustView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call CJustDlg *pDlg = new CJustDlg;
pDlg->DoModal();
delete pDlg;

CView::OnLButtonDown(nFlags, point);
}

if you have any more wann'a help!... then

Let's Send Email Me...

I'll get you Some nice code!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top