Click here to Skip to main content
15,904,287 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSample example for CPPUnit Pin
pandit8415-Feb-09 20:40
pandit8415-Feb-09 20:40 
AnswerRe: Sample example for CPPUnit Pin
Hamid_RT15-Feb-09 21:21
Hamid_RT15-Feb-09 21:21 
QuestionNew SDI (Doc formview frame) from an existing one. Pin
_T("No name")15-Feb-09 19:39
_T("No name")15-Feb-09 19:39 
AnswerRe: New SDI (Doc formview frame) from an existing one. Pin
Iain Clarke, Warrior Programmer15-Feb-09 22:26
Iain Clarke, Warrior Programmer15-Feb-09 22:26 
GeneralRe: New SDI (Doc formview frame) from an existing one. Pin
_T("No name")15-Feb-09 22:50
_T("No name")15-Feb-09 22:50 
GeneralRe: New SDI (Doc formview frame) from an existing one. Pin
Iain Clarke, Warrior Programmer15-Feb-09 23:18
Iain Clarke, Warrior Programmer15-Feb-09 23:18 
GeneralRe: New SDI (Doc formview frame) from an existing one. Pin
_T("No name")16-Feb-09 2:46
_T("No name")16-Feb-09 2:46 
Questionfree download link for MFC book Pin
Purish Dwivedi15-Feb-09 19:01
Purish Dwivedi15-Feb-09 19:01 
AnswerRe: free download link for MFC book Pin
_AnsHUMAN_ 15-Feb-09 19:21
_AnsHUMAN_ 15-Feb-09 19:21 
GeneralRe: free download link for MFC book Pin
Purish Dwivedi15-Feb-09 19:28
Purish Dwivedi15-Feb-09 19:28 
GeneralRe: free download link for MFC book Pin
_AnsHUMAN_ 15-Feb-09 19:35
_AnsHUMAN_ 15-Feb-09 19:35 
GeneralRe: free download link for MFC book Pin
Purish Dwivedi15-Feb-09 19:37
Purish Dwivedi15-Feb-09 19:37 
GeneralRe: free download link for MFC book Pin
Cedric Moonen15-Feb-09 20:39
Cedric Moonen15-Feb-09 20:39 
GeneralRe: free download link for MFC book Pin
Hamid_RT15-Feb-09 21:22
Hamid_RT15-Feb-09 21:22 
AnswerRe: free download link for MFC book Pin
Christian Graus15-Feb-09 20:54
protectorChristian Graus15-Feb-09 20:54 
AnswerRe: free download link for MFC book Pin
Hamid_RT15-Feb-09 21:15
Hamid_RT15-Feb-09 21:15 
GeneralThanks Pin
Purish Dwivedi15-Feb-09 21:37
Purish Dwivedi15-Feb-09 21:37 
AnswerPlease re-order the terms of your request. Pin
CPallini15-Feb-09 21:59
mveCPallini15-Feb-09 21:59 
GeneralThank You Pin
Purish Dwivedi15-Feb-09 22:15
Purish Dwivedi15-Feb-09 22:15 
Questiondownload link of a free MFC book. Pin
Purish Dwivedi15-Feb-09 22:17
Purish Dwivedi15-Feb-09 22:17 
AnswerRe: download link of a free MFC book. Pin
CPallini15-Feb-09 22:31
mveCPallini15-Feb-09 22:31 
AnswerRe: download link of a free MFC book. Pin
Super Hornet16-Feb-09 0:34
Super Hornet16-Feb-09 0:34 
Question32 or 64 Bit Pin
john563215-Feb-09 18:42
john563215-Feb-09 18:42 
AnswerRe: 32 or 64 Bit Pin
Graham Bradshaw15-Feb-09 21:00
Graham Bradshaw15-Feb-09 21:00 
QuestionHow to change the index of Header Item? Pin
mikert_200815-Feb-09 18:41
mikert_200815-Feb-09 18:41 
Hi,
I want to change the index of header Item on drag drop. If header item 0 drag drop to next header column(After HeaderCol 1) then change the index of Header item 0 to 1. & Header Item 1 index to 0. I am using GetItem() & SetItem() but that's not working. How to do this?

Please make the correction in the code:-

On DragDropFunc()
{
HDITEM pHeaderItemCurrent,pHeaderItemNew;
TCHAR lpBuffer[256];
TCHAR lpBuffer1[256];

pHeaderItemCurrent.pszText = lpBuffer;
pHeaderItemCurrent.cchTextMax = 256;
pHeaderItemNew.pszText = lpBuffer1;
pHeaderItemNew.cchTextMax = 256;

m_HeaderCtrl.GetItem(0,&pHeaderItemCurrent);
m_HeaderCtrl.GetItem(1,&pHeaderItemNew);

m_HeaderCtrl.SetItem(0, &pHeaderItemNew);
m_HeaderCtrl.SetItem(1, &pHeaderItemCurrent);

}

Thanks:-
Mike

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.