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

C / C++ / MFC

 
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 
AnswerRe: how can I get Push button setfocus event Pin
Code-o-mat21-Apr-09 21:57
Code-o-mat21-Apr-09 21:57 
Why do you need to refresh your listbox when your add button gets focus? I am just guessing but i believe what you want is to refresh your list when your second dialog is closed. If it is a modal dialog then all you need to do is refresh your list after your second dialog's DoModal returns.
void CMyThreadDlg::OnPressedAddButton()
{
  CMySecondDialog Dlg(this);
  Dlg.DoModal();
  RefreshMyListNow();
}

If you insist on the focus change maybe try using ON_BN_SETFOCUS(IDC_BUTTON2, OnBnSetfocusButton2) instead of ON_BN_SETFOCUS(IDC_BUTTON2, &CMyThreadDlg::OnBnSetfocusButton2), does that help?

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

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 
AnswerRe: Pre-Allocate File Storage Pin
Stuart Dootson21-Apr-09 10:28
professionalStuart Dootson21-Apr-09 10:28 

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.