Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing in an array Pin
ns2-Oct-02 8:57
ns2-Oct-02 8:57 
GeneralRe: Passing in an array Pin
Chris Losinger2-Oct-02 9:01
professionalChris Losinger2-Oct-02 9:01 
GeneralRe: Passing in an array Pin
Ravi Bhavnani2-Oct-02 12:12
professionalRavi Bhavnani2-Oct-02 12:12 
GeneralSpin Control Problem!!! Pin
Daniel Strigl2-Oct-02 8:03
Daniel Strigl2-Oct-02 8:03 
GeneralRe: Spin Control Problem!!! Pin
Dimitri Rochette2-Oct-02 9:23
Dimitri Rochette2-Oct-02 9:23 
GeneralRe: Spin Control Problem!!! Pin
Daniel Strigl2-Oct-02 10:24
Daniel Strigl2-Oct-02 10:24 
GeneralRe: Spin Control Problem!!! Pin
Gero Gerber2-Oct-02 12:53
Gero Gerber2-Oct-02 12:53 
GeneralRe: Spin Control Problem!!! Pin
Nilesh Karkhanis2-Oct-02 21:08
Nilesh Karkhanis2-Oct-02 21:08 
Hi Daniel,

You can either give the ranges other way round or you can override CWnd's OnNotify method

BOOL YourClass::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) <br />
{<br />
	LPNMHDR pnmh = (LPNMHDR) lParam; <br />
<br />
	if(pnmh->code == UDN_DELTAPOS )<br />
        {<br />
           NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pnmh;<br />
	   // Check whether the value should be incremented or decremented<br />
  	   if(pNMUpDown->iDelta < 0)<br />
	   {<br />
		//value should be decremented<br />
	   }<br />
	   else<br />
	   {<br />
		// value should be incremented<br />
	   }<br />
        }<br />
  return true;<br />
}


-ve value of delta would suggest decrement and +ve would suggest increment
you can reverse the ways if you like.



Hope that would be of your help.

Nilesh Smile | :)
GeneralRe: Spin Control Problem!!! Pin
Daniel Strigl2-Oct-02 23:07
Daniel Strigl2-Oct-02 23:07 
GeneralCSocket::OnReceive Question Pin
jparsons2-Oct-02 8:06
jparsons2-Oct-02 8:06 
GeneralRe: CSocket::OnReceive Question Pin
jmkhael2-Oct-02 8:15
jmkhael2-Oct-02 8:15 
GeneralRe: CSocket::OnReceive Question Pin
jparsons2-Oct-02 11:21
jparsons2-Oct-02 11:21 
GeneralRe: CSocket::OnReceive Question Pin
jmkhael2-Oct-02 21:44
jmkhael2-Oct-02 21:44 
GeneralIXMLDOMNode as an idl parameter Pin
nlecren2-Oct-02 8:05
nlecren2-Oct-02 8:05 
GeneralRe: IXMLDOMNode as an idl parameter Pin
Stephane Rodriguez.2-Oct-02 9:06
Stephane Rodriguez.2-Oct-02 9:06 
GeneralRe: IXMLDOMNode as an idl parameter Pin
nlecren2-Oct-02 9:21
nlecren2-Oct-02 9:21 
GeneralRe: IXMLDOMNode as an idl parameter Pin
Stephane Rodriguez.2-Oct-02 9:42
Stephane Rodriguez.2-Oct-02 9:42 
GeneralProblem automating Excel Pin
Anonymous2-Oct-02 7:43
Anonymous2-Oct-02 7:43 
GeneralSmart Pointer question Pin
User 98852-Oct-02 7:40
User 98852-Oct-02 7:40 
Generalmap object in STL Pin
ns2-Oct-02 7:33
ns2-Oct-02 7:33 
GeneralRe: map object in STL Pin
Marc Britten2-Oct-02 7:38
Marc Britten2-Oct-02 7:38 
GeneralRe: map object in STL Pin
ns2-Oct-02 7:47
ns2-Oct-02 7:47 
GeneralRe: map object in STL Pin
Chris Losinger2-Oct-02 7:41
professionalChris Losinger2-Oct-02 7:41 
GeneralRe: map object in STL Pin
ns2-Oct-02 7:48
ns2-Oct-02 7:48 
QuestionIs there a way to send a script file to a server and run it there in VC++ code? Pin
Anonymous2-Oct-02 7:21
Anonymous2-Oct-02 7:21 

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.