Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
AnswerRe: How to change the index of Header Item? Pin
_AnsHUMAN_ 15-Feb-09 19:48
_AnsHUMAN_ 15-Feb-09 19:48 
GeneralRe: How to change the index of Header Item? Pin
mikert_200815-Feb-09 20:37
mikert_200815-Feb-09 20:37 
GeneralRe: How to change the index of Header Item? Pin
_AnsHUMAN_ 15-Feb-09 20:44
_AnsHUMAN_ 15-Feb-09 20:44 
GeneralRe: How to change the index of Header Item? Pin
mikert_200815-Feb-09 21:18
mikert_200815-Feb-09 21:18 
GeneralRe: How to change the index of Header Item? Pin
Rolf Kristensen18-Feb-09 8:27
Rolf Kristensen18-Feb-09 8:27 
QuestionSample code which caculates HCF/LCM of two or more numbers? [modified] Pin
kapardhi15-Feb-09 18:38
kapardhi15-Feb-09 18:38 
AnswerRe: Sample code which caculates HCF/LCM of two or more numbers? Pin
Nuri Ismail15-Feb-09 21:28
Nuri Ismail15-Feb-09 21:28 
QuestionUsing GetSystemTime in WM_KEYDOWN Pin
EvScott15-Feb-09 16:50
EvScott15-Feb-09 16:50 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
«_Superman_»15-Feb-09 17:21
professional«_Superman_»15-Feb-09 17:21 
GeneralRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 0:49
EvScott16-Feb-09 0:49 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 0:19
mveCPallini16-Feb-09 0:19 
GeneralRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 0:54
EvScott16-Feb-09 0:54 
QuestionRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 0:58
mveCPallini16-Feb-09 0:58 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 1:48
EvScott16-Feb-09 1:48 
QuestionRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 1:56
mveCPallini16-Feb-09 1:56 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 2:11
EvScott16-Feb-09 2:11 
GeneralRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 2:19
mveCPallini16-Feb-09 2:19 

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.