Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Sat, 26 Apr 2008 12:22:02 -0700 (PDT),    group: microsoft.public.platformsdk.ui        back       


Drawing menu gutter in RTL mode using Visual Styles on Vista   
Hi all,

I'm using DrawThemeBackground() on Vista in order to draw a gutter for
a menu which is drawn using uxtheme API.  The code is pretty simple,
and looks like this:

DrawThemeBackground(theme, hdc, MENU_POPUPGUTTER, 0, &gutterRect,
&clipRect);

Now, I need to support RTL (right-to-left) menus, which need the
gutter mirrored in the right side of the menu.  When I calculate a new
rect at the right side of the menu as gutterRect, the
DrawThemeBackground() API draws the gutter in left-to-right mode
(i.e., the vertical bar appears at the right side of the gutter
instead of its left side), therefore the appearance is incorrect.

Is there any way to get the uxtheme API to draw the menu gutter
correctly in RTL mode?

I have the same problem in drawing the submenu icon
(MENU_POPUPSUBMENU) but I guess these two problems must have the same
solution.

Thanks in advance!
Ehsan
date: Sat, 26 Apr 2008 12:22:02 -0700 (PDT)   author:   Ehsan Akhgari

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us