Two questions |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 02 August 2006 at 10:28am |
Hi!
1) A report control with multiline items looks fine with the DT_WORDBREAK style. However, in edit mode the newline characters are drawn as squares. How can I enable multiline support in edit mode?
2) Is it possible to view bitmaps or simply owner-drawn cells in the report control? Icons can easily be loaded, but I need to fill the whole cell with image information. Thus, a 16x16 image is not enough.
Thanks in advance!
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
1) For the column with multiline rows setup: pColumn->GetEditOptions()->m_dwEditStyle |= ES_MULTILINE | ES_AUTOVSCROLL; So, newline characters defined as '\r\n' will be proceeded correctly. 2) You'll have to implement your own CXTPReportRecordItem - derived cell class and owerwrite it's Draw method. -- WBR, Serge |
|
Makarand
Senior Member Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
|
I am able to set the multiline property by applying
pColumn->GetEditOptions()->m_dwEditStyle |= ES_MULTILINE | ES_AUTOVSCROLL; but ES_AUTOVSCROLL is not setting. Please see attached screenshot. any other way to set it? -Mak
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |