Click here to Skip to main content
16,011,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adobe Audition/Cool Edit Plug-in - PART 2 Pin
Trevor13-Dec-03 1:21
Trevor13-Dec-03 1:21 
GeneralProblem using CADODatabase and CADORecordset classes. Pin
bilas3-Dec-03 1:05
bilas3-Dec-03 1:05 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
RChin3-Dec-03 2:03
RChin3-Dec-03 2:03 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
bilas3-Dec-03 3:25
bilas3-Dec-03 3:25 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
RChin3-Dec-03 5:04
RChin3-Dec-03 5:04 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
bilas3-Dec-03 11:10
bilas3-Dec-03 11:10 
GeneralError with slider index. Pin
vgrigor3-Dec-03 0:40
vgrigor3-Dec-03 0:40 
GeneralRe: Error with slider index. Pin
Antti Keskinen3-Dec-03 1:50
Antti Keskinen3-Dec-03 1:50 
Have you tested other positions ? 0, 1, 3 ?
Do they return correct values ?

Your code only shows that your slider's range is from 0 to 3. It does not show whether you have set it to have ticks at 1 intervals. For this purpose, the style TBS_AUTOTICKS must be set when creating, after which a call to SetTicFreq member with parameter 1 would do the job.

Try calling GetTickPos with different values. If all return -1, you've forgotten something in the initialization of the control. If only position 2 returns -1, then check your tic frequency and/or force it to '1'.

Remember, that the range setting does not assume that there are ticks in the control. A slider control with a range 0 -> 3 without ticks would result in a bar which has 0 at the other end, 3 at the other, and nothing inbetween. This would cause a '-1' to be returned from a query for an invalid position. In this case, only positions 0 (0) and 1 (3) would be valid.

Here, I assume you use CSliderCtrl MFC class. If you use a custom slider control, then it's implementation might be buggy.

Try out those suggestions and reply with results. Then I might be able to help you more.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Error with slider index. Pin
vgrigor3-Dec-03 2:23
vgrigor3-Dec-03 2:23 
GeneralRe: Error with slider index. Pin
Antti Keskinen3-Dec-03 3:25
Antti Keskinen3-Dec-03 3:25 
GeneralOutlook please help Pin
Jump_Around3-Dec-03 0:36
Jump_Around3-Dec-03 0:36 
GeneralRe: Outlook please help Pin
Antti Keskinen3-Dec-03 1:56
Antti Keskinen3-Dec-03 1:56 
GeneralRe: Outlook please help Pin
Jump_Around3-Dec-03 2:18
Jump_Around3-Dec-03 2:18 
GeneralRe: Outlook please help Pin
Antti Keskinen3-Dec-03 2:47
Antti Keskinen3-Dec-03 2:47 
GeneralRe: Outlook please help Pin
Jump_Around3-Dec-03 3:45
Jump_Around3-Dec-03 3:45 
GeneralRe: Outlook please help Pin
Jump_Around3-Dec-03 4:33
Jump_Around3-Dec-03 4:33 
GeneralRe: Outlook please help Pin
Peter Molnar3-Dec-03 14:32
Peter Molnar3-Dec-03 14:32 
QuestionHow to override CPropertySheet::RemovePage(int nPage)? Pin
mfc_surfer3-Dec-03 0:14
mfc_surfer3-Dec-03 0:14 
AnswerRe: How to override CPropertySheet::RemovePage(int nPage)? Pin
Antti Keskinen3-Dec-03 2:14
Antti Keskinen3-Dec-03 2:14 
GeneralRe: How to override CPropertySheet::RemovePage(int nPage)? Pin
mfc_surfer3-Dec-03 21:26
mfc_surfer3-Dec-03 21:26 
GeneralLookupAccountName please show a working example Pin
BaldwinMartin2-Dec-03 23:23
BaldwinMartin2-Dec-03 23:23 
GeneralRe: LookupAccountName please show a working example Pin
Michael P Butler2-Dec-03 23:32
Michael P Butler2-Dec-03 23:32 
GeneralRe: LookupAccountName please show a working example Pin
BaldwinMartin3-Dec-03 0:08
BaldwinMartin3-Dec-03 0:08 
GeneralSetup an deployment Pin
BoudewijnEctor2-Dec-03 22:55
BoudewijnEctor2-Dec-03 22:55 
GeneralRe: Setup an deployment Pin
CarstensenP2-Dec-03 23:34
CarstensenP2-Dec-03 23:34 

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.