RE: Problem with ODS_NOACCEL
From: Rhett Gong [MSFT] (v-raygon_at_online.microsoft.com)
Date: 09/10/04
- Next message: Bjørn Terje Svennes: "Problems with WM_NCACTIVATE and MDI windows"
- Previous message: Harry_Crow: "RE: Double buffer painting in the Non Client Area"
- In reply to: Steve Alpert: "Problem with ODS_NOACCEL"
- Next in thread: Steve Alpert: "Re: Problem with ODS_NOACCEL"
- Reply: Steve Alpert: "Re: Problem with ODS_NOACCEL"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Bjørn Terje Svennes: "Problems with WM_NCACTIVATE and MDI windows"
- Previous message: Harry_Crow: "RE: Double buffer painting in the Non Client Area"
- In reply to: Steve Alpert: "Problem with ODS_NOACCEL"
- Next in thread: Steve Alpert: "Re: Problem with ODS_NOACCEL"
- Reply: Steve Alpert: "Re: Problem with ODS_NOACCEL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|