Click here to Skip to main content
15,894,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: set values to charachter arrays which are entered [modified] Pin
Vincen Wang8-Sep-08 16:09
Vincen Wang8-Sep-08 16:09 
GeneralRe: set values to charachter arrays which are entered Pin
toprogramminguy10-Sep-08 6:19
toprogramminguy10-Sep-08 6:19 
GeneralRe: set values to charachter arrays which are entered Pin
Vincen Wang15-Sep-08 15:03
Vincen Wang15-Sep-08 15:03 
Questioncannot open any more tables pls help Pin
GPat247-Sep-08 11:49
GPat247-Sep-08 11:49 
AnswerRe: cannot open any more tables pls help Pin
Rane7-Sep-08 19:21
Rane7-Sep-08 19:21 
GeneralRe: cannot open any more tables pls help Pin
GPat248-Sep-08 1:49
GPat248-Sep-08 1:49 
QuestionRe: cannot open any more tables pls help Pin
Mark Salsbery8-Sep-08 6:29
Mark Salsbery8-Sep-08 6:29 
Questionsorting a CListCtrl by clicking on one of it's column's headers makes an arrow appear, but also makes the header appear flat Pin
Sternocera7-Sep-08 8:25
Sternocera7-Sep-08 8:25 
Hi guys. I'm using a third party MFC CListCtrl inheriting class, that comes with its own CHeaderCtrl inheriting class - http://www.codeproject.com/KB/list/creportctrl.aspx[^] . It works well, but the function that updates the header of the CListCtrl to display the arrow that indicates the order of a given sort (ascending or descending) has an undesirable side effect; when called, it makes the sorted column's header appear completely flat, rather than 3D, and when the cursor rolls over the column it doesn't become highlighted. This only seems to be a problem in Windows XP.

Here's the relevant code:
void CReportCtrl::CReportHeaderCtrl::UpdateSortArrow()
{

        // change the item to owner drawn.

        HD_ITEM hditem;

        hditem.mask = HDI_FORMAT;
        VERIFY(GetItem(m_iSortColumn, &hditem));
        hditem.fmt |= HDF_OWNERDRAW;
        VERIFY(SetItem(m_iSortColumn, &hditem));

        // invalidate the header control so it gets redrawn

        Invalidate();
}


If one of you could suggest a way of avoiding this, and having the arrow appear without changing the appearance of the header, that would certainly be appreciated,
Regards,
Sternocera
QuestionVirtual World Pin
MrMcIntyre7-Sep-08 4:23
MrMcIntyre7-Sep-08 4:23 
AnswerRe: Virtual World Pin
Perspx7-Sep-08 4:44
Perspx7-Sep-08 4:44 
GeneralRe: Virtual World Pin
AndrewMcIntyre7-Sep-08 5:03
AndrewMcIntyre7-Sep-08 5:03 
GeneralRe: Virtual World Pin
Cedric Moonen7-Sep-08 6:22
Cedric Moonen7-Sep-08 6:22 
AnswerRe: Virtual World Pin
Hamid_RT7-Sep-08 6:39
Hamid_RT7-Sep-08 6:39 
GeneralRe: Virtual World Pin
AndrewMcIntyre7-Sep-08 6:59
AndrewMcIntyre7-Sep-08 6:59 
Question'/RTC1' and '/clr' command-line options are incompatible [modified] Pin
rasred7-Sep-08 0:08
rasred7-Sep-08 0:08 
AnswerRe: '/RTC1' and '/clr' command-line options are incompatible Pin
Rane7-Sep-08 19:41
Rane7-Sep-08 19:41 
QuestionCallback with meber functions Pin
progDes6-Sep-08 20:48
progDes6-Sep-08 20:48 
AnswerRe: Callback with meber functions Pin
oobimoo7-Sep-08 8:26
oobimoo7-Sep-08 8:26 
GeneralRe: Callback with meber functions Pin
progDes7-Sep-08 8:38
progDes7-Sep-08 8:38 
Questionchange activex CLSID Pin
samira forooghi6-Sep-08 20:47
samira forooghi6-Sep-08 20:47 
AnswerRe: change activex CLSID Pin
Rane7-Sep-08 19:26
Rane7-Sep-08 19:26 
QuestionHow to get a Program to show in SysTray instead of on the Running App Bar. Pin
Bram van Kampen6-Sep-08 13:29
Bram van Kampen6-Sep-08 13:29 
AnswerRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
sashoalm6-Sep-08 14:43
sashoalm6-Sep-08 14:43 
GeneralRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
Bram van Kampen6-Sep-08 15:21
Bram van Kampen6-Sep-08 15:21 
GeneralRe: How to get a Program to show in SysTray instead of on the Running App Bar. Pin
sashoalm8-Sep-08 4:29
sashoalm8-Sep-08 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.