Click here to Skip to main content
15,887,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cretate a value under Registry key... Pin
p_196021-Apr-09 21:22
p_196021-Apr-09 21:22 
GeneralRe: cretate a value under Registry key... Pin
CPallini21-Apr-09 21:58
mveCPallini21-Apr-09 21:58 
QuestionHow to debug my code ? Pin
kapardhi21-Apr-09 20:53
kapardhi21-Apr-09 20:53 
AnswerRe: How to debug my code ? Pin
Cedric Moonen21-Apr-09 21:05
Cedric Moonen21-Apr-09 21:05 
GeneralRe: How to debug my code ? Pin
kapardhi21-Apr-09 21:13
kapardhi21-Apr-09 21:13 
GeneralRe: How to debug my code ? Pin
Cedric Moonen21-Apr-09 21:29
Cedric Moonen21-Apr-09 21:29 
GeneralRe: How to debug my code ? Pin
kapardhi21-Apr-09 21:42
kapardhi21-Apr-09 21:42 
Questionhow can I get Push button setfocus event Pin
hemlat21-Apr-09 20:22
hemlat21-Apr-09 20:22 
Hi,
I have created MFC application.I am having 2 Dialog boxes.If I click "Add" button(push button) on first Dialog second dialog will open.After canceling of second dialog once again focus is coming on Add Button.At that time I need to refresh my list box,which is on first dialog.

I need to get focus of Add button.So I have created small program like this

BEGIN_MESSAGE_MAP(CMyThreadDlg, CDialog)
	ON_BN_SETFOCUS(IDC_BUTTON2, &CMyThreadDlg::OnBnSetfocusButton2)
END_MESSAGE_MAP()

void CMyThreadDlg::OnBnSetfocusButton2()
{
	// TODO: Add your control notification handler code here
	MessageBox(_T("Focus"));
}


If I click on that button focus is coming but function is not calling.Can anyone help me.
AnswerRe: how can I get Push button setfocus event Pin
Code-o-mat21-Apr-09 21:57
Code-o-mat21-Apr-09 21:57 
GeneralRe: how can I get Push button setfocus event Pin
hemlat21-Apr-09 23:53
hemlat21-Apr-09 23:53 
QuestionLPCTSTR to LPCWSTR Pin
p_196021-Apr-09 20:15
p_196021-Apr-09 20:15 
AnswerRe: LPCTSTR to LPCWSTR Pin
Cedric Moonen21-Apr-09 20:22
Cedric Moonen21-Apr-09 20:22 
AnswerRe: LPCTSTR to LPCWSTR Pin
KarstenK21-Apr-09 21:15
mveKarstenK21-Apr-09 21:15 
GeneralRe: LPCTSTR to LPCWSTR Pin
Cedric Moonen21-Apr-09 21:24
Cedric Moonen21-Apr-09 21:24 
GeneralRe: LPCTSTR to LPCWSTR Pin
David Crow22-Apr-09 5:48
David Crow22-Apr-09 5:48 
Questioncreating modeless dialog Pin
Rakesh521-Apr-09 19:32
Rakesh521-Apr-09 19:32 
AnswerRe: creating modeless dialog Pin
Chandrasekharan P21-Apr-09 19:38
Chandrasekharan P21-Apr-09 19:38 
AnswerRe: creating modeless dialog Pin
Hamid_RT21-Apr-09 20:04
Hamid_RT21-Apr-09 20:04 
QuestionNetUserChangePassword( not working under Windosw 2003 sp2 Pin
CADITC_CODER21-Apr-09 18:59
CADITC_CODER21-Apr-09 18:59 
QuestionHow to draw the 3D image using the StL file Pin
DevelopmentNoob21-Apr-09 17:52
DevelopmentNoob21-Apr-09 17:52 
AnswerRe: How to draw the 3D image using the StL file Pin
Cedric Moonen21-Apr-09 20:20
Cedric Moonen21-Apr-09 20:20 
Questionuse gdi+ to draw special picture Pin
x169m21-Apr-09 16:29
x169m21-Apr-09 16:29 
AnswerRe: use gdi+ to draw special picture Pin
Hamid_RT21-Apr-09 20:12
Hamid_RT21-Apr-09 20:12 
Questionabout SetJob().about Printer Pin
tony_bin21-Apr-09 15:41
tony_bin21-Apr-09 15:41 
QuestionPre-Allocate File Storage Pin
Hoppenfeld21-Apr-09 9:18
Hoppenfeld21-Apr-09 9:18 

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.