Click here to Skip to main content
15,914,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOwner draw buttton:Unable to handle enter key event Pin
Manish_Home15-Nov-06 3:13
Manish_Home15-Nov-06 3:13 
AnswerRe: Owner draw buttton:Unable to handle enter key event Pin
Hamid_RT15-Nov-06 7:54
Hamid_RT15-Nov-06 7:54 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Manish_Home15-Nov-06 17:22
Manish_Home15-Nov-06 17:22 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Hamid_RT15-Nov-06 18:36
Hamid_RT15-Nov-06 18:36 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Manish_Home15-Nov-06 19:17
Manish_Home15-Nov-06 19:17 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Hamid_RT15-Nov-06 20:07
Hamid_RT15-Nov-06 20:07 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Manish_Home15-Nov-06 20:30
Manish_Home15-Nov-06 20:30 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Hamid_RT15-Nov-06 21:00
Hamid_RT15-Nov-06 21:00 
if you run this code what happens?
<br />
#define IDC_TEST 1000<br />
<br />
BEGIN_MESSAGE_MAP(CAnswerDlg, CDialog)<br />
ON_BN_CLICKED(IDC_TEST, OnBnClickedTest)<br />
END_MESSAGE_MAP()<br />
<br />
void CAnswerDlg::DoDataExchange(CDataExchange* pDX)<br />
{<br />
	DDX_Control(pDX, IDC_TEST, m_Test);<br />
}<br />
<br />
BOOL CAnswerDlg::OnInitDialog()<br />
{<br />
m_Test.Create("AS",WS_TABSTOP|WS_CHILD|WS_VISIBLE|BS_NOTIFY,CRect(0,0,100,23),this,IDC_TEST);<br />
}<br />
<br />
void CAnswerDlg::OnBnClickedTest()<br />
{<br />
	MessageBox("A");<br />
}<br />
<br />
//////////In header file///////<br />
	afx_msg void OnBnClickedTest();<br />
	CButton m_Test;<br />

I run this code and it works for me does this code solve your problem?




WhiteSky

GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Manish_Home14-Dec-06 22:10
Manish_Home14-Dec-06 22:10 
GeneralRe: Owner draw buttton:Unable to handle enter key event Pin
Hamid_RT14-Dec-06 22:30
Hamid_RT14-Dec-06 22:30 
QuestionReadFile() - Buffer... Pin
Programm3r15-Nov-06 1:48
Programm3r15-Nov-06 1:48 
AnswerRe: ReadFile() - Buffer... Pin
Monty215-Nov-06 2:02
Monty215-Nov-06 2:02 
GeneralRe: ReadFile() - Buffer... Pin
Programm3r15-Nov-06 2:06
Programm3r15-Nov-06 2:06 
GeneralRe: ReadFile() - Buffer... Pin
Monty215-Nov-06 2:10
Monty215-Nov-06 2:10 
GeneralRe: ReadFile() - Buffer... Pin
Programm3r15-Nov-06 2:17
Programm3r15-Nov-06 2:17 
GeneralOT Pin
Monty215-Nov-06 2:28
Monty215-Nov-06 2:28 
GeneralRe: OT Pin
Programm3r15-Nov-06 3:15
Programm3r15-Nov-06 3:15 
GeneralRe: OT Pin
Mark Salsbery15-Nov-06 11:17
Mark Salsbery15-Nov-06 11:17 
AnswerRe: ReadFile() - Buffer... Pin
prasad_som15-Nov-06 2:02
prasad_som15-Nov-06 2:02 
AnswerRe: ReadFile() - Buffer... Pin
toxcct15-Nov-06 2:09
toxcct15-Nov-06 2:09 
QuestionListbox problem Pin
priyank_ldce15-Nov-06 1:35
priyank_ldce15-Nov-06 1:35 
AnswerRe: Listbox problem Pin
prasad_som15-Nov-06 1:39
prasad_som15-Nov-06 1:39 
AnswerRe: Listbox problem Pin
Viorel.15-Nov-06 1:47
Viorel.15-Nov-06 1:47 
GeneralRe: Listbox problem Pin
priyank_ldce15-Nov-06 2:55
priyank_ldce15-Nov-06 2:55 
GeneralRe: Listbox problem Pin
Viorel.15-Nov-06 3:16
Viorel.15-Nov-06 3:16 

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.