Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: User Button Notification Codes: BN_CLICKED, is there a way to get notification when it is unclicked? Pin
Paul Belikian1-Dec-10 7:10
Paul Belikian1-Dec-10 7:10 
QuestionSave as HTML to text file Pin
Max++29-Nov-10 16:36
Max++29-Nov-10 16:36 
AnswerRe: Save as HTML to text file Pin
visualheadsky29-Nov-10 17:14
visualheadsky29-Nov-10 17:14 
QuestionSpin control , it's possible to know when the control is released? Pin
timbk29-Nov-10 16:05
timbk29-Nov-10 16:05 
AnswerRe: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 1:56
Code-o-mat30-Nov-10 1:56 
GeneralRe: Spin control , it's possible to know when the control is released? Pin
timbk30-Nov-10 8:33
timbk30-Nov-10 8:33 
GeneralRe: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 8:43
Code-o-mat30-Nov-10 8:43 
GeneralRe: Spin control , it's possible to know when the control is released? Pin
timbk30-Nov-10 9:29
timbk30-Nov-10 9:29 
Thanks for your answer, ok I've trying, I did this:
In the header file CalibracionDlg.h
afx_msg void OnDeltaposSPIN1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnReleasedCaptureSPIN1(NMHDR* pNMHDR, LRESULT* pResult);

In the source file Calibraciondlg.cpp
ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN1, OnDeltaposSPIN1)
ON_NOTIFY(NM_RELEASEDCAPTURE, IDC_SPIN1, OnReleasedCaptureSPIN1)


and the methods
void CCalibracionDlg::OnDeltaposSPIN1(NMHDR* pNMHDR, LRESULT* pResult) 
{

	NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
	// TODO: Add your control notification handler code here
	//some code
}

void CCalibracionDlg::OnReleasedCaptureSPIN1(NMHDR* pNMHDR, LRESULT* pResult)
{
	GetDlgItem(IDC_SPIN1)->EnableWindow(FALSE);//just to see if it works.
}

the compiler doesn't show any erros, but when I execute , nothing, when the control is released nothing happens. may be i forgot something?
GeneralRe: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 10:10
Code-o-mat30-Nov-10 10:10 
GeneralRe: Spin control , it's possible to know when the control is released? Pin
timbk30-Nov-10 10:18
timbk30-Nov-10 10:18 
GeneralRe: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 10:33
Code-o-mat30-Nov-10 10:33 
GeneralRe: Spin control , it's possible to know when the control is released? Pin
timbk30-Nov-10 12:04
timbk30-Nov-10 12:04 
AnswerSolved: Spin control , it's possible to know when the control is released? Pin
timbk30-Nov-10 15:16
timbk30-Nov-10 15:16 
GeneralRe: Solved: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 21:46
Code-o-mat30-Nov-10 21:46 
GeneralRe: Solved: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 21:46
Code-o-mat30-Nov-10 21:46 
QuestionNew'ing a pointer to an array [Solved] Pin
Skippums29-Nov-10 7:36
Skippums29-Nov-10 7:36 
AnswerRe: New'ing a pointer to an array Pin
«_Superman_»29-Nov-10 7:53
professional«_Superman_»29-Nov-10 7:53 
GeneralRe: New'ing a pointer to an array Pin
Skippums29-Nov-10 8:02
Skippums29-Nov-10 8:02 
GeneralRe: New'ing a pointer to an array [modified] Pin
«_Superman_»29-Nov-10 8:34
professional«_Superman_»29-Nov-10 8:34 
GeneralRe: New'ing a pointer to an array Pin
Skippums29-Nov-10 9:18
Skippums29-Nov-10 9:18 
GeneralRe: New'ing a pointer to an array Pin
«_Superman_»29-Nov-10 9:20
professional«_Superman_»29-Nov-10 9:20 
GeneralRe: New'ing a pointer to an array Pin
Skippums29-Nov-10 9:34
Skippums29-Nov-10 9:34 
GeneralRe: New'ing a pointer to an array Pin
«_Superman_»29-Nov-10 9:36
professional«_Superman_»29-Nov-10 9:36 
QuestionRestrict SDI to Resize Pin
john563229-Nov-10 3:37
john563229-Nov-10 3:37 
AnswerRe: Restrict SDI to Resize Pin
Cedric Moonen29-Nov-10 4:14
Cedric Moonen29-Nov-10 4:14 

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.