Click here to Skip to main content
14,040,957 members
Click here to Skip to main content

Stats

2.2M views
58.7K downloads
447 bookmarked
Posted 3 Sep 2008
Licenced CPOL

CGridListCtrlEx - Grid Control Based on CListCtrl

, 16 Mar 2015
A custom draw CListCtrl with subitem editing and formatting
CGridListCtrlEx
DemoApplication
res
CGridListCtrlEx.ico
FLGDEN.ICO
FLGFRAN.ICO
FLGGERM.ICO
FLGGREEC.ico
FLGSPAIN.ICO
FLGSWED.ICO
Documentation
CGridListCtrlEx
screenshot.png
vs2003
CGridListCtrlEx.vcproj
vs2005
CGridListCtrlEx.vcproj
vs2008
CGridListCtrlEx.vcproj
vs6
CGridListCtrlEx.dsp
CGridListCtrlEx.dsw
Release
CGridListCtrlEx.exe
msvcp120.dll
msvcr120.dll
CGridListCtrlEx.ico
FLGDEN.ICO
FLGFRAN.ICO
FLGGERM.ICO
FLGGREEC.ico
FLGSPAIN.ICO
FLGSWED.ICO
screenshot.png
Doxygen
Doxyfile
html
arrowdown.png
arrowright.png
bc_s.png
bdwn.png
class_c_grid_column_trait.png
class_c_grid_column_trait_combo.png
class_c_grid_column_trait_date_time.png
class_c_grid_column_trait_edit.png
class_c_grid_column_trait_hyper_link.png
class_c_grid_column_trait_image.png
class_c_grid_column_trait_multiline_edit.png
class_c_grid_column_trait_text.png
class_c_grid_editor_combo_box.png
class_c_grid_editor_combo_box_edit.png
class_c_grid_editor_date_time_ctrl.png
class_c_grid_editor_text.png
class_c_grid_list_ctrl_ex.png
class_c_grid_list_ctrl_groups.png
class_c_grid_multiline_editor_text.png
class_c_grid_row_trait.png
class_c_grid_row_trait_text.png
class_c_grid_row_trait_x_p.png
class_c_view_config_section.png
class_c_view_config_section_default.png
class_c_view_config_section_default_1_1_c_view_config_section_local.png
class_c_view_config_section_profiles.png
class_c_view_config_section_win_app.png
closed.png
doc.png
doxygen.png
folderclosed.png
folderopen.png
ftv2blank.png
ftv2cl.png
ftv2doc.png
ftv2folderclosed.png
ftv2folderopen.png
ftv2lastnode.png
ftv2link.png
ftv2mlastnode.png
ftv2mnode.png
ftv2mo.png
ftv2node.png
ftv2ns.png
ftv2plastnode.png
ftv2pnode.png
ftv2splitbar.png
ftv2vertline.png
nav_f.png
nav_g.png
nav_h.png
open.png
search
close.png
mag_sel.png
search_l.png
search_m.png
search_r.png
splitbar.png
sync_off.png
sync_on.png
tab_a.png
tab_b.png
tab_h.png
tab_s.png
CGridListCtrlEx.vcproj
CGridListCtrlEx.vcproj
CGridListCtrlEx.vcproj
CGridListCtrlEx.dsp
CGridListCtrlEx.dsw
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>CGridListCtrlEx: CGridRowTraitXP Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CGridListCtrlEx
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_c_grid_row_trait_x_p-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CGridRowTraitXP Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_c_grid_row_trait_x_p.html" title="CGridRowTraitXP fixes drawing of rows when the application is using classic- or XP-style. ">CGridRowTraitXP</a> fixes drawing of rows when the application is using classic- or XP-style.  
 <a href="class_c_grid_row_trait_x_p.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for CGridRowTraitXP:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_grid_row_trait_x_p.png" usemap="#CGridRowTraitXP_map" alt=""/>
  <map id="CGridRowTraitXP_map" name="CGridRowTraitXP_map">
<area href="class_c_grid_row_trait_text.html" title="CGridRowTraitText provides customization text and background at row-level. " alt="CGridRowTraitText" shape="rect" coords="0,56,117,80"/>
<area href="class_c_grid_row_trait.html" title="CGridRowTrait specifies an interface for handling custom drawing at row-level. " alt="CGridRowTrait" shape="rect" coords="0,0,117,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a44b832a05e8a93d3575718ba7af825dd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_x_p.html#a44b832a05e8a93d3575718ba7af825dd">OnCustomDraw</a> (<a class="el" href="class_c_grid_list_ctrl_ex.html">CGridListCtrlEx</a> &amp;owner, NMLVCUSTOMDRAW *pLVCD, LRESULT *pResult)</td></tr>
<tr class="memdesc:a44b832a05e8a93d3575718ba7af825dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overrides the custom draw handler, to allow custom coloring of rows.  <a href="#a44b832a05e8a93d3575718ba7af825dd">More...</a><br /></td></tr>
<tr class="separator:a44b832a05e8a93d3575718ba7af825dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_grid_row_trait_text"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_grid_row_trait_text')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_c_grid_row_trait_text.html">CGridRowTraitText</a></td></tr>
<tr class="memitem:a6b69756bc381bd68ac45ef8b3cce99b3 inherit pub_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6b69756bc381bd68ac45ef8b3cce99b3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a6b69756bc381bd68ac45ef8b3cce99b3">CGridRowTraitText</a> ()</td></tr>
<tr class="memdesc:a6b69756bc381bd68ac45ef8b3cce99b3 inherit pub_methods_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_c_grid_row_trait_text.html" title="CGridRowTraitText provides customization text and background at row-level. ">CGridRowTraitText</a> - Constructor. <br /></td></tr>
<tr class="separator:a6b69756bc381bd68ac45ef8b3cce99b3 inherit pub_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37b7f29aa4c94e4750323a57ec269310 inherit pub_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a37b7f29aa4c94e4750323a57ec269310">SetRowColor</a> (COLORREF textColor, COLORREF backColor)</td></tr>
<tr class="memdesc:a37b7f29aa4c94e4750323a57ec269310 inherit pub_methods_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the same row coloring for all rows.  <a href="#a37b7f29aa4c94e4750323a57ec269310">More...</a><br /></td></tr>
<tr class="separator:a37b7f29aa4c94e4750323a57ec269310 inherit pub_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad61f1bc02fc5cddb979926b4aa8f0bab inherit pub_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#ad61f1bc02fc5cddb979926b4aa8f0bab">SetAltRowColor</a> (COLORREF textColor, COLORREF backColor)</td></tr>
<tr class="memdesc:ad61f1bc02fc5cddb979926b4aa8f0bab inherit pub_methods_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Activates alternate row coloring.  <a href="#ad61f1bc02fc5cddb979926b4aa8f0bab">More...</a><br /></td></tr>
<tr class="separator:ad61f1bc02fc5cddb979926b4aa8f0bab inherit pub_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0ccc39b5efbe7d211515b80a8cb596b inherit pub_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0ccc39b5efbe7d211515b80a8cb596b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetInvertCellSelection</b> (bool bValue)</td></tr>
<tr class="separator:af0ccc39b5efbe7d211515b80a8cb596b inherit pub_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e65990fd030e90f6914130f6daf5b7f inherit pub_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e65990fd030e90f6914130f6daf5b7f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetInvertCellSelection</b> () const </td></tr>
<tr class="separator:a6e65990fd030e90f6914130f6daf5b7f inherit pub_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a70dc85cff10f5926606587bc4285a24b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70dc85cff10f5926606587bc4285a24b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_x_p.html#a70dc85cff10f5926606587bc4285a24b">Accept</a> (<a class="el" href="class_c_grid_row_trait_visitor.html">CGridRowTraitVisitor</a> &amp;visitor)</td></tr>
<tr class="memdesc:a70dc85cff10f5926606587bc4285a24b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accept Visitor Pattern. <br /></td></tr>
<tr class="separator:a70dc85cff10f5926606587bc4285a24b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_c_grid_row_trait_text"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_c_grid_row_trait_text')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_c_grid_row_trait_text.html">CGridRowTraitText</a></td></tr>
<tr class="memitem:a2f0da7a1cfa5677dca654fb1bc821f19 inherit pro_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a2f0da7a1cfa5677dca654fb1bc821f19">UpdateTextColor</a> (int nRow, COLORREF &amp;textColor)</td></tr>
<tr class="memdesc:a2f0da7a1cfa5677dca654fb1bc821f19 inherit pro_methods_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the text color if one is specified.  <a href="#a2f0da7a1cfa5677dca654fb1bc821f19">More...</a><br /></td></tr>
<tr class="separator:a2f0da7a1cfa5677dca654fb1bc821f19 inherit pro_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a313ee25248ac19e030ac4e8081973ce5 inherit pro_methods_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a313ee25248ac19e030ac4e8081973ce5">UpdateBackColor</a> (int nRow, COLORREF &amp;backColor)</td></tr>
<tr class="memdesc:a313ee25248ac19e030ac4e8081973ce5 inherit pro_methods_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the background color if one is specified.  <a href="#a313ee25248ac19e030ac4e8081973ce5">More...</a><br /></td></tr>
<tr class="separator:a313ee25248ac19e030ac4e8081973ce5 inherit pro_methods_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_class_c_grid_row_trait_text"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_c_grid_row_trait_text')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_c_grid_row_trait_text.html">CGridRowTraitText</a></td></tr>
<tr class="memitem:a1e84a7a961f10316706d73098bd101bf inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e84a7a961f10316706d73098bd101bf"></a>
CFont *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a1e84a7a961f10316706d73098bd101bf">m_pOldFont</a></td></tr>
<tr class="memdesc:a1e84a7a961f10316706d73098bd101bf inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Backup of the original font while drawing with specified font. <br /></td></tr>
<tr class="separator:a1e84a7a961f10316706d73098bd101bf inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e914d53ec3f4827cede0b5070d7cbf7 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e914d53ec3f4827cede0b5070d7cbf7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a5e914d53ec3f4827cede0b5070d7cbf7">m_FontAllocated</a></td></tr>
<tr class="memdesc:a5e914d53ec3f4827cede0b5070d7cbf7 inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specified font was allocated by the row trait. <br /></td></tr>
<tr class="separator:a5e914d53ec3f4827cede0b5070d7cbf7 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1763e6271378ae4b6d278df3a6862c9 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1763e6271378ae4b6d278df3a6862c9"></a>
COLORREF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#af1763e6271378ae4b6d278df3a6862c9">m_TextColor</a></td></tr>
<tr class="memdesc:af1763e6271378ae4b6d278df3a6862c9 inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Text color to use for this row. <br /></td></tr>
<tr class="separator:af1763e6271378ae4b6d278df3a6862c9 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afccc68578ec0a5fe2dff64a67e9fd73b inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afccc68578ec0a5fe2dff64a67e9fd73b"></a>
COLORREF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#afccc68578ec0a5fe2dff64a67e9fd73b">m_BackColor</a></td></tr>
<tr class="memdesc:afccc68578ec0a5fe2dff64a67e9fd73b inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Background color to use for this row. <br /></td></tr>
<tr class="separator:afccc68578ec0a5fe2dff64a67e9fd73b inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a11346f8cb7f87491fdbf559a125f16 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a11346f8cb7f87491fdbf559a125f16"></a>
COLORREF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a3a11346f8cb7f87491fdbf559a125f16">m_AltTextColor</a></td></tr>
<tr class="memdesc:a3a11346f8cb7f87491fdbf559a125f16 inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alternate text color to use for every second row. <br /></td></tr>
<tr class="separator:a3a11346f8cb7f87491fdbf559a125f16 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a636e396d45bea4b2ddbb3fe911b72173 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a636e396d45bea4b2ddbb3fe911b72173"></a>
COLORREF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a636e396d45bea4b2ddbb3fe911b72173">m_AltBackColor</a></td></tr>
<tr class="memdesc:a636e396d45bea4b2ddbb3fe911b72173 inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alternate background color to use for every second row. <br /></td></tr>
<tr class="separator:a636e396d45bea4b2ddbb3fe911b72173 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0df4506d4ed4b83054b0a533014fb237 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0df4506d4ed4b83054b0a533014fb237"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_grid_row_trait_text.html#a0df4506d4ed4b83054b0a533014fb237">m_InvertCellSelection</a></td></tr>
<tr class="memdesc:a0df4506d4ed4b83054b0a533014fb237 inherit pro_attribs_class_c_grid_row_trait_text"><td class="mdescLeft">&#160;</td><td class="mdescRight">When cell has focus in column, then the selection color is removed. <br /></td></tr>
<tr class="separator:a0df4506d4ed4b83054b0a533014fb237 inherit pro_attribs_class_c_grid_row_trait_text"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_c_grid_row_trait_x_p.html" title="CGridRowTraitXP fixes drawing of rows when the application is using classic- or XP-style. ">CGridRowTraitXP</a> fixes drawing of rows when the application is using classic- or XP-style. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a44b832a05e8a93d3575718ba7af825dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CGridRowTraitXP::OnCustomDraw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_grid_list_ctrl_ex.html">CGridListCtrlEx</a> &amp;&#160;</td>
          <td class="paramname"><em>owner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NMLVCUSTOMDRAW *&#160;</td>
          <td class="paramname"><em>pLVCD</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LRESULT *&#160;</td>
          <td class="paramname"><em>pResult</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Overrides the custom draw handler, to allow custom coloring of rows. </p>
<ul>
<li>Fix white background for icon images</li>
<li>Fix white background between icon and cell text</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">owner</td><td>The list control drawing </td></tr>
    <tr><td class="paramname">pLVCD</td><td>Pointer to NMLVCUSTOMDRAW structure </td></tr>
    <tr><td class="paramname">pResult</td><td>Modification to the drawing stage (CDRF_NEWFONT, etc.) </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_c_grid_row_trait_text.html#ac74b376ccd1d771f82de85ad3f685b66">CGridRowTraitText</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Rolf Kristensen
Software Developer
Denmark Denmark
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.190425.1 | Last Updated 16 Mar 2015
Article Copyright 2008 by Rolf Kristensen
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid