|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tera tera
|
Dec 19, 2010 - 7:57 PM
|
|
|
Technical Support
|
Dec 20, 2010 - 8:41 AM
|
Which variant exactly do you need? Left or right? You can use the CExtGridWnd::SiwModifyStyleEx() to apply the __EGWS_EX_PM_COLORS and/or __EGWS_EX_USE_THEME_API styles. The __EGWS_EX_PM_COLORS style makes the grid cells draw their parts using colors from paint manager. I.e. if this style is applied, then grid uses Prof-UIS theme colors. If it’s not applied, then grid uses Windows desktop theme colors. The __EGWS_EX_USE_THEME_API style tells the grid cells they should draw their parts using UxTheme.DLL APIs.
|
|
tera tera
|
Dec 20, 2010 - 5:20 PM
|
I want to draw the right.
I declared it as follows
However, the button is not drawn. m_pMuGrid->SiwModifyStyleEx(
__EGBS_EX_HVI_EVENT_CELLS
|__EGBS_EX_HVI_HIGHLIGHT_CELL
|__EGBS_EX_CELL_TOOLTIPS_OUTER
|__EGBS_EX_CELL_EXPANDING_INNER
|__EGWS_EX_PM_COLORS
,
0,
false
); or m_pMuGrid->SiwModifyStyleEx(
__EGBS_EX_HVI_EVENT_CELLS
|__EGBS_EX_HVI_HIGHLIGHT_CELL
|__EGBS_EX_CELL_TOOLTIPS_OUTER
|__EGBS_EX_CELL_EXPANDING_INNER
|__EGWS_EX_USE_THEME_API
,
0,
false
);
http://ifreeta.dee.cc/20101220/SampleMuGrid3.lzh
|
|
Technical Support
|
Dec 22, 2010 - 11:22 AM
|
Thank you for providing the test project. We added the following code into the CSampleMuGridDlg::OnInitDialog() method (after the AddAnchor ( m_pMuGrid->m_hWnd , __RDA_LT, __RDA_LB ); code):
m_pMuGrid->SiwModifyStyleEx( __EGWS_EX_USE_THEME_API, 0, false );
Then we added the following code into the SampleMuGrid.rc2 file: #if (!defined PROF_UIS_X64) && (!defined PROF_UIS_IA64) && (!defined PROF_UIS_FORCE_NO_MANIFEST)
1 24 DISCARDABLE "res\\manifest_x86.xml"
#endif
Then we copied manifest files into the res subfolder. That’s all. The grid control uses the styles like you requested. Here is the modified version of your test project: http://www.prof-uis.com/download/forums/tmp/SampleMuGrid3-FIXED.zip
|
|
tera tera
|
Dec 19, 2010 - 7:58 PM
|
I am troubled. 
|
|