RE: Problem with ODS_NOACCEL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rhett Gong [MSFT] (v-raygon_at_online.microsoft.com)
Date: 09/10/04


Date: Fri, 10 Sep 2004 09:21:05 GMT

Hi Steve,
Here is my understanding on your problem. Please let me if I get something
wrong.
//-----------
it is an ownerdrawn button
in the DRAWITEMSTRUCT, you specified the ODS_NOACCEL for itemState
the button is used in an AX control
1> host the ax control in IE -> press alt -> the button is painted with a
underscore
2> host the ax control in a normal win32 ap -> press alt -> mainframe menu
is underscored rather than the button
//--------------
In IE, when we press ALT key, WM_CHANGEUISTATE and WM_UPDATEUISTATE
messages are sent to specified window and all its child windows, so the
button is repainted with the underscore. But a normal win32 app does not
send these, so parent of the button will not get WM_DRAWITEM messages at
all!,

Best regards,
Rhett Gong [MSFT]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.



Relevant Pages

  • Re: Word 2007 VBA User Forms Accelerator Key
    ... Are you sure that the height of the control is sufficient for the underscore ... With the above proviso, the underscore is displayed in the ... the relevent letter is not underlined when running the form. ...
    (microsoft.public.word.vba.general)
  • Re: How to change the font of the main menu in application window?
    ... This is because the default setting in Control ... letter for keyboard navigation" is checked, so the underscore will be ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Problem with ODS_NOACCEL
    ... > messages are sent to specified window and all its child windows, ... > button is repainted with the underscore. ... Clearly, in IE, my control is receiving DRAWITEM ... In my Win32 App, the menu is toggling the underscore but the ...
    (microsoft.public.win32.programmer.ui)
  • Re: Control ids
    ... > The id is generated as to give it a uniqueid in the control ... I missed the fact you're using them in a user control. ... I think that the leading underscore for the id inside a well ... Google will completely ignore the whole page if a control has an ...
    (microsoft.public.dotnet.framework.aspnet)