Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralXP visual style, MFC toolbar Pin
scpierre12-Dec-01 11:39
scpierre12-Dec-01 11:39 
QuestionBlending in OpenGL? Pin
12-Dec-01 11:35
suss12-Dec-01 11:35 
AnswerRe: Blending in OpenGL? Pin
Christian Graus12-Dec-01 12:20
protectorChristian Graus12-Dec-01 12:20 
GeneralOther way? Pin
13-Dec-01 16:11
suss13-Dec-01 16:11 
GeneralRe: Other way? Pin
Christian Graus13-Dec-01 16:17
protectorChristian Graus13-Dec-01 16:17 
GeneralRe: Other way? Pin
13-Dec-01 16:58
suss13-Dec-01 16:58 
QuestionHow move a CListCtrl item?! Pin
XAlien12-Dec-01 11:23
XAlien12-Dec-01 11:23 
AnswerRe: How move a CListCtrl item?! Pin
Thomas Blenkers14-Dec-01 0:21
Thomas Blenkers14-Dec-01 0:21 
When you are in Report mode, something like this SwapRows function should help:

void CMyListCtrl::SwapRows(int row1, int row2)
{
// rowText will hold all column text for one row
CStringArray rowText;

LV_ITEM lvitemrow1, lvitemrow2;

int nColCount = GetColumnCount();

rowText.SetSize( nColCount );

int i;
for( i=0; i < nColCount; i++)
rowText[i] = GetItemText(row1, i);

lvitemrow1.mask = LVIF_IMAGE | LVIF_PARAM | LVIF_STATE;
lvitemrow1.iItem = row1;
lvitemrow1.iSubItem = 0;
lvitemrow1.stateMask = LVIS_CUT | LVIS_DROPHILITED |
LVIS_FOCUSED | LVIS_SELECTED |
LVIS_OVERLAYMASK | LVIS_STATEIMAGEMASK;

lvitemrow2 = lvitemrow1;
lvitemrow2.iItem = row2;

GetItem( &lvitemrow1 );
GetItem( &lvitemrow2 );

for( i=0; i< nColCount; i++)
SetItemText(row1, i, GetItemText(row2, i) );

lvitemrow2.iItem = row1;
SetItem( &lvitemrow2 );

for( i=0; i< nColCount; i++)
SetItemText(row2, i, rowText[i]);

lvitemrow1.iItem = row2;
SetItem( &lvitemrow1 );
}

WM_HOPEITHELPED
GeneralOne more question about CreateProcess, etc Pin
12-Dec-01 11:10
suss12-Dec-01 11:10 
GeneralRe: One more question about CreateProcess, etc Pin
Bill Wilson12-Dec-01 13:04
Bill Wilson12-Dec-01 13:04 
GeneralRe: One more question about CreateProcess, etc Pin
13-Dec-01 5:25
suss13-Dec-01 5:25 
GeneralNewbie Image Help Pin
Jerry Wang12-Dec-01 8:50
Jerry Wang12-Dec-01 8:50 
GeneralRe: Newbie Image Help Pin
Christian Graus12-Dec-01 10:17
protectorChristian Graus12-Dec-01 10:17 
GeneralRe: Newbie Image Help Pin
12-Dec-01 12:38
suss12-Dec-01 12:38 
GeneralRe: Newbie Image Help Pin
Christian Graus12-Dec-01 13:12
protectorChristian Graus12-Dec-01 13:12 
GeneralRe: Newbie Image Help Pin
Joaquín M López Muñoz12-Dec-01 11:55
Joaquín M López Muñoz12-Dec-01 11:55 
GeneralRe: Newbie Image Help Pin
12-Dec-01 12:53
suss12-Dec-01 12:53 
GeneralRe: Newbie Image Help Pin
Christian Graus12-Dec-01 13:18
protectorChristian Graus12-Dec-01 13:18 
GeneralRe: Newbie Image Help Pin
13-Dec-01 12:11
suss13-Dec-01 12:11 
QuestionHow to launch an executable directly from memory? Pin
John Osborn12-Dec-01 8:39
John Osborn12-Dec-01 8:39 
AnswerRe: How to launch an executable directly from memory? Pin
Joaquín M López Muñoz12-Dec-01 9:22
Joaquín M López Muñoz12-Dec-01 9:22 
GeneralRe: How to launch an executable directly from memory? Pin
John Osborn12-Dec-01 13:26
John Osborn12-Dec-01 13:26 
GeneralIs it possible to change bmp in executable Pin
SAK12-Dec-01 7:36
SAK12-Dec-01 7:36 
GeneralRe: Is it possible to change bmp in executable Pin
Rick York12-Dec-01 7:58
mveRick York12-Dec-01 7:58 
GeneralRe: Is it possible to change bmp in executable Pin
Ernest Laurentin12-Dec-01 7:59
Ernest Laurentin12-Dec-01 7:59 

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.