Click here to Skip to main content
15,928,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: visual c++ funny or its a bug? Pin
warlu20-Feb-04 20:48
warlu20-Feb-04 20:48 
GeneralCListBox Greying Pin
SVPG19-Feb-04 18:01
SVPG19-Feb-04 18:01 
Questionhow to share one dll with multiple instance Pin
Rajesh match19-Feb-04 17:56
Rajesh match19-Feb-04 17:56 
AnswerRe: how to share one dll with multiple instance Pin
DimpleSurana19-Feb-04 20:52
DimpleSurana19-Feb-04 20:52 
GeneralRe: how to share one dll with multiple instance Pin
Rajesh match19-Feb-04 21:23
Rajesh match19-Feb-04 21:23 
GeneralRe: how to share one dll with multiple instance Pin
DimpleSurana19-Feb-04 23:29
DimpleSurana19-Feb-04 23:29 
GeneralRe: how to share one dll with multiple instance Pin
Mike Beckerleg20-Feb-04 1:30
Mike Beckerleg20-Feb-04 1:30 
GeneralMFC and Messages handling Pin
Melflex19-Feb-04 16:58
Melflex19-Feb-04 16:58 
Ok I know I can get an EditBox to respond to a double click message by providing a function in a derived CEdit class.

But what I really want is for my Dialog class to know when the edit box recieves a double click message like it does when the ON_EN_CHANGE message is sent, but so far I'm un sure of how to do this.

Any assistance would be great, thanks.


class CMyEdit : public CEdit
{
public:
CMyEdit(){};
//{{AFX_VIRTUAL(CMyEdit)
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CMyEdit)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
};

BEGIN_MESSAGE_MAP(CMyEdit, CEdit)
//{{AFX_MSG_MAP(CMyEdit)
ON_WM_LBUTTONDBLCLK()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CMyEdit::OnLButtonDblClk(UINT nFlags, CPoint point)
{
CEdit::OnLButtonDblClk(nFlags, point);
}


class CMyPage : public CDialog
{

public:
CParticle2Page(CWnd* pParent = NULL); // standard constructor
virtual ~CParticle2Page();
enum { IDD = IDD_PARTICLE2DLG };

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnEnChangeMyEdit();
afx_msg void OnDBClickedMyEdit();
CMyEdit m_MyEdit;
}

CMyPage::CMyPage(CWnd* pParent /*=NULL*/)
: CDialog(CMyPage::IDD, pParent)
{
}

void CMyPage::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_MY_EDIT, m_MyEdit);
}

BEGIN_MESSAGE_MAP(CMyPage, CDialog)
ON_EN_CHANGE(IDC_MY_EDIT, OnEnChangeMyEdit)
ON_WM_LBUTTONDBLCLK(IDC_MY_EDIT, OnDBClickedMyEdit)
END_MESSAGE_MAP()

void CMyPage::OnEnChangeMyEdit()
{
int a = 10;
}

void CMyPage::OnDBClickedMyEdit()
{
int a = 10;
}
Questionwhere to get divx 5.02 encode? Pin
hxr60119-Feb-04 16:42
hxr60119-Feb-04 16:42 
AnswerRe: where to get divx 5.02 encode? Pin
Christian Graus19-Feb-04 17:08
protectorChristian Graus19-Feb-04 17:08 
Generala class function Pin
Anonymous19-Feb-04 16:02
Anonymous19-Feb-04 16:02 
GeneralRe: a class function Pin
Christian Graus19-Feb-04 17:11
protectorChristian Graus19-Feb-04 17:11 
GeneralRe: a class function Pin
warlu19-Feb-04 20:48
warlu19-Feb-04 20:48 
General? about compiler Pin
Snyp19-Feb-04 15:24
Snyp19-Feb-04 15:24 
GeneralRe: ? about compiler Pin
Maxwell Chen19-Feb-04 21:07
Maxwell Chen19-Feb-04 21:07 
GeneralData display question Pin
rmnowick19-Feb-04 11:43
rmnowick19-Feb-04 11:43 
GeneralRe: Data display question Pin
l a u r e n19-Feb-04 15:43
l a u r e n19-Feb-04 15:43 
GeneralRe: Data display question Pin
eggie515-May-04 10:54
eggie515-May-04 10:54 
GeneralI need some help!!! Pin
rodneyk119-Feb-04 11:14
rodneyk119-Feb-04 11:14 
GeneralRe: I need some help!!! Pin
Christian Graus19-Feb-04 11:37
protectorChristian Graus19-Feb-04 11:37 
GeneralRe: I need some help!!! Pin
l a u r e n19-Feb-04 15:44
l a u r e n19-Feb-04 15:44 
QuestionHow to tell if display is 640x480? Pin
mcgahanfl19-Feb-04 10:19
mcgahanfl19-Feb-04 10:19 
AnswerRe: How to tell if display is 640x480? Pin
Christian Graus19-Feb-04 10:36
protectorChristian Graus19-Feb-04 10:36 
GeneralIt just blows up !!! Pin
Christian Graus19-Feb-04 9:31
protectorChristian Graus19-Feb-04 9:31 
GeneralRe: It just blows up !!! Pin
Jörgen Sigvardsson19-Feb-04 12:03
Jörgen Sigvardsson19-Feb-04 12:03 

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.