Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Losing ComboBox Button After SetIconIndex
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Losing ComboBox Button After SetIconIndex

 Post Reply Post Reply
jslmsca View Drop Down

Joined: 28 February 2019
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jslmsca Quote  Post ReplyReply Direct Link To This Post Topic: Losing ComboBox Button After SetIconIndex
    Posted: 28 February 2019 at 8:05pm

I've derived my own RecordItem from CXTPReportRecordItemText.  I create the ReportControl and populate the rows.  I call AddComboButton(TRUE) on each item's EditOptions.  If I set an icon index at this point, the icon is displayed along with the combo button.

However, I do not want the icons to be displayed until an active action by the user on my dialog.  I've trapped the click notification through XTP_REPORTRECORDITEM_CLICKARGS at which point I call RecordItem->SetIconIndex.  The icon is displayed but I've lost the combo button.

I've tried redrawing the control and calling AddComboButton again in various places but without success.  I'm at a loss as to what might be happening.  The parent dialog is successfully receiving the notification XTP_NM_REPORT_VALUECHANGED and the underlying content seems fine.

Any ideas are appreciated.  Thanks.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.094 seconds.