Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL deque question Pin
John M. Drescher10-Apr-03 5:29
John M. Drescher10-Apr-03 5:29 
GeneralRe: STL deque question Pin
Zdeslav Vojkovic10-Apr-03 5:27
Zdeslav Vojkovic10-Apr-03 5:27 
GeneralRe: STL deque question Pin
Alvaro Mendez10-Apr-03 5:53
Alvaro Mendez10-Apr-03 5:53 
GeneralSetWindowLong() Pin
ZarrinPour10-Apr-03 5:01
ZarrinPour10-Apr-03 5:01 
GeneralRe: SetWindowLong() Pin
Alvaro Mendez10-Apr-03 6:03
Alvaro Mendez10-Apr-03 6:03 
GeneralSpinCtrl Pin
act_x10-Apr-03 4:51
act_x10-Apr-03 4:51 
GeneralRe: SpinCtrl Pin
PJ Arends10-Apr-03 9:27
professionalPJ Arends10-Apr-03 9:27 
GeneralRe: SpinCtrl Pin
Heiko200310-Apr-03 10:42
sussHeiko200310-Apr-03 10:42 
Hi,

Set the Spinboxrange from 0 to 10
(0->0, 1->0.5, 2->1, 3->1.5, etc)

You can use the DialogMethod OnVScroll

The Message is WM_VSCROLL

put this Code in the OnVSrollMethod

void YourClassName::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar){
CString str;

if(pScrollBar==GetDlgItem(IDC_SPIN_..)){ //Insert here you SpinID
str.Format("%.1f",(double)(nPos/2.0));
GetDlgItem(IDC_EDIT_SPINVALUE...)->SetWindowText(str);
}
}

hope this helps
GeneralProblem with WorkQueue Pin
Martin_Viet10-Apr-03 4:46
Martin_Viet10-Apr-03 4:46 
GeneralGetting Systeminformations Pin
Sendel10-Apr-03 4:46
Sendel10-Apr-03 4:46 
GeneralRe: Getting Systeminformations Pin
MarkyMark10-Apr-03 5:24
MarkyMark10-Apr-03 5:24 
GeneralRe: Getting Systeminformations Pin
Sendel10-Apr-03 7:08
Sendel10-Apr-03 7:08 
GeneralRe: Getting Systeminformations Pin
Dominik Reichl10-Apr-03 9:16
Dominik Reichl10-Apr-03 9:16 
GeneralRe: Getting Systeminformations Pin
Sendel10-Apr-03 10:19
Sendel10-Apr-03 10:19 
GeneralCDao problem with 'create' Pin
naradaji10-Apr-03 4:00
naradaji10-Apr-03 4:00 
GeneralRe: CDao problem with 'create' Pin
Carlos Antollini10-Apr-03 4:05
Carlos Antollini10-Apr-03 4:05 
GeneralRe: CDao problem with 'create' Pin
naradaji10-Apr-03 4:08
naradaji10-Apr-03 4:08 
GeneralRe: CDao problem with 'create' Pin
Carlos Antollini10-Apr-03 4:26
Carlos Antollini10-Apr-03 4:26 
GeneralRe: CDao problem with 'create' Pin
naradaji10-Apr-03 4:42
naradaji10-Apr-03 4:42 
Generalexceptions Pin
Jonathan [Darka]10-Apr-03 3:56
professionalJonathan [Darka]10-Apr-03 3:56 
GeneralRe: exceptions Pin
Alvaro Mendez10-Apr-03 6:42
Alvaro Mendez10-Apr-03 6:42 
GeneralGetting the response headers Pin
RED10-Apr-03 3:47
RED10-Apr-03 3:47 
GeneralExecution question Pin
Jump_Around10-Apr-03 3:45
Jump_Around10-Apr-03 3:45 
GeneralRe: Execution question Pin
Cedric Moonen10-Apr-03 3:49
Cedric Moonen10-Apr-03 3:49 
GeneralRe: Execution question Pin
valikac10-Apr-03 7:47
valikac10-Apr-03 7:47 

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.