Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change cursor? Pin
george ivanov26-Sep-05 23:42
george ivanov26-Sep-05 23:42 
AnswerRe: How to change cursor? Pin
AHawk27-Sep-05 0:08
AHawk27-Sep-05 0:08 
AnswerRe: How to change cursor? Pin
AHawk27-Sep-05 0:10
AHawk27-Sep-05 0:10 
AnswerRe: How to change cursor? Pin
Ashok Dhamija27-Sep-05 4:36
Ashok Dhamija27-Sep-05 4:36 
QuestionHow to initialize _TCHAR array Pin
Boaz V26-Sep-05 23:32
Boaz V26-Sep-05 23:32 
AnswerRe: How to initialize _TCHAR array Pin
Laffis26-Sep-05 23:36
Laffis26-Sep-05 23:36 
GeneralRe: How to initialize _TCHAR array Pin
Boaz V27-Sep-05 0:42
Boaz V27-Sep-05 0:42 
QuestionUse of Narrator and other screen readers Pin
greekgoddj26-Sep-05 23:27
greekgoddj26-Sep-05 23:27 
Greetings,

I have the "joy" of trying to make my ActiveX controls act as Accessibility servers, so that they provide information about the value, role, and desrciption (how to be used) to potential screen readers. The "joy" comes from the lack of information on accessibility, and the bit that there is out there is not clear. I am hoping that somebody on this list has some experience with this area and can help me out with the following.

I have a custom slider in the form of an ActiveX Control. Everytime the value of the slider changes, I want the new value to be read by the screen reader. At the moment I am call the following code everytime the slider value has changed.

<doe>

CComPtr<iaccpropservices> pAccPropSrv;
HRESULT hr;
hr = pAccPropSrv.CoCreateInstance(CLSID_AccPropServices);

if(hr == S_OK)
{
COleVariant varValue(m_sPositionText);
COleVariant varRole((long)ROLE_SYSTEM_SLIDER, VT_I4);
COleVariant varDescr("Some description");
pAccPropSrv->SetHwndProp(m_hWnd, OBJID_CLIENT, 0, PROPID_ACC_VALUE, varValue);
pAccPropSrv->SetHwndProp(m_hWnd,
OBJID_CLIENT, 0, PROPID_ACC_ROLE, varRole);
pAccPropSrv->SetHwndProp(m_hWnd, OBJID_CLIENT, 0, PROPID_ACC_DESCRIPTION, varDescr);
}



This actually results in the screen reader reading the Role and Value, and not the Description. More importantly it only reads it the first time that the slider gets focus. No matter how many times I click on the slider and move it arround after that, the screen reader does not read the new value. If I then click on another control, and then back on the slider again, then it reads the value once more.

I thought this was a problem with my ActiveX slider control but it is also how default controls such as radio buttons of Windows, work, they will onyl read out their value once until they regain focus again.

However, the standard windows slider control, has the exception that it will read out the value everytime the slider changes due to the user pressing the arrow keys. In my ActiveX control slider, the same code as above is called whenever the slider position changes, regardless of whether it changed my the mouse or keys.

I guess in summary, what I need help with is:

1) Why does the screen reader not read out my ActiveX control's description.
2) Why does the value of my ActiveX control only get read once until it regains focus.
3) How does the standard windows slider manage to read its new value when the value has changed due to the user pressing the arrow keys?


Thanks in advance,

Aristotel
Edit/Delete Message
QuestionHelp hooking Windows API functions Pin
JaVinci26-Sep-05 23:27
JaVinci26-Sep-05 23:27 
AnswerRe: Help hooking Windows API functions Pin
Laffis26-Sep-05 23:41
Laffis26-Sep-05 23:41 
GeneralRe: Help hooking Windows API functions Pin
ThatsAlok27-Sep-05 1:42
ThatsAlok27-Sep-05 1:42 
QuestionTo save &amp; restore Files and Folders Pin
rajeevktripathi26-Sep-05 23:16
rajeevktripathi26-Sep-05 23:16 
AnswerRe: To save &amp; restore Files and Folders Pin
AHawk26-Sep-05 23:56
AHawk26-Sep-05 23:56 
QuestionUndeclared Identifier Pin
rajeevktripathi26-Sep-05 23:04
rajeevktripathi26-Sep-05 23:04 
AnswerRe: Undeclared Identifier Pin
Roger Stoltz26-Sep-05 23:25
Roger Stoltz26-Sep-05 23:25 
AnswerRe: Undeclared Identifier Pin
toxcct26-Sep-05 23:34
toxcct26-Sep-05 23:34 
AnswerRe: Undeclared Identifier Pin
prasad_som26-Sep-05 23:36
prasad_som26-Sep-05 23:36 
QuestionRegister File Type in Registry Pin
kk.tvm26-Sep-05 22:27
kk.tvm26-Sep-05 22:27 
AnswerRe: Register File Type in Registry Pin
Blake Miller27-Sep-05 4:30
Blake Miller27-Sep-05 4:30 
QuestionAggregate compiler problem... Pin
toxcct26-Sep-05 22:13
toxcct26-Sep-05 22:13 
GeneralRe: Aggregate compiler problem... Pin
prasad_som26-Sep-05 23:14
prasad_som26-Sep-05 23:14 
GeneralRe: Aggregate compiler problem... Pin
toxcct26-Sep-05 23:40
toxcct26-Sep-05 23:40 
AnswerRe: Aggregate compiler problem... Pin
Roger Stoltz26-Sep-05 23:19
Roger Stoltz26-Sep-05 23:19 
GeneralRe: Aggregate compiler problem... Pin
toxcct26-Sep-05 23:29
toxcct26-Sep-05 23:29 
Questionhow to upgrade a lib from vc6 version to vc7's? Pin
tankwan26-Sep-05 22:08
tankwan26-Sep-05 22:08 

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.