Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Serialize Version problem! Pin
sabdalla8012-Nov-08 6:55
sabdalla8012-Nov-08 6:55 
QuestionRe: MFC Serialize Version problem! Pin
enhzflep12-Nov-08 7:39
enhzflep12-Nov-08 7:39 
AnswerRe: MFC Serialize Version problem! Pin
Roger Stoltz12-Nov-08 7:42
Roger Stoltz12-Nov-08 7:42 
GeneralRe: MFC Serialize Version problem! Pin
sabdalla8012-Nov-08 7:58
sabdalla8012-Nov-08 7:58 
GeneralRe: MFC Serialize Version problem! Pin
Mark Salsbery12-Nov-08 9:01
Mark Salsbery12-Nov-08 9:01 
QuestionCListCtrl - Problem with VS2008 Pin
MrNyquist12-Nov-08 5:01
MrNyquist12-Nov-08 5:01 
AnswerRe: CListCtrl - Problem with VS2008 Pin
Mark Salsbery12-Nov-08 9:08
Mark Salsbery12-Nov-08 9:08 
GeneralRe: CListCtrl - Problem with VS2008 Pin
MrNyquist12-Nov-08 21:10
MrNyquist12-Nov-08 21:10 
Mark Salsbery wrote:
The list view control is provided by the operating system,
not Visual Studio.


OK ... but the problem with the ListCtrl occured with the change of the Visual Studio (change of MFC Version)...

Here some code:
The ListCtrl is created with:
m_ListCtrl.Create(WS_CHILD|WS_VISIBLE|LVS_ICON|LVS_ALIGNTOP|LVS_SINGLESEL|LVS_AUTOARRANGE, rect, this, ID_OFEN_LIST_CTRL);


The ImageList is created with:
m_ImageList.Create(m_nWidthIcons, m_nHeightIcons, ILC_COLOR32, m_nInitial, m_nGrow);
m_ListCtrl.SetImageList(&m_ImageList, LVSIL_NORMAL);


The items were added with the following code (item --> LVITEM):
item.mask      = LVIF_IMAGE|LVCFMT_CENTER;
item.iItem     = nIndex;
item.iSubItem  = 0;
item.iImage    = nIndex;
item.state     = LVIS_FOCUSED;

m_ListCtrl.InsertItem(&item);


The images are drawn with a CBitmap object:
m_ImageList.Add(&bitmap, RGB(0, 0, 0));

GeneralRe: CListCtrl - Problem with VS2008 Pin
Mark Salsbery13-Nov-08 5:41
Mark Salsbery13-Nov-08 5:41 
GeneralRe: CListCtrl - Problem with VS2008 Pin
Mark Salsbery13-Nov-08 5:57
Mark Salsbery13-Nov-08 5:57 
GeneralRe: CListCtrl - Problem with VS2008 Pin
MrNyquist14-Nov-08 1:56
MrNyquist14-Nov-08 1:56 
Questionvc6 to vc8 conversion [modified] Pin
Russell'12-Nov-08 3:56
Russell'12-Nov-08 3:56 
GeneralRe: vc6 to vc8 conversion Pin
led mike12-Nov-08 4:20
led mike12-Nov-08 4:20 
GeneralRe: vc6 to vc8 conversion Pin
Russell'12-Nov-08 4:35
Russell'12-Nov-08 4:35 
GeneralRe: vc6 to vc8 conversion Pin
led mike12-Nov-08 4:59
led mike12-Nov-08 4:59 
GeneralRe: vc6 to vc8 conversion Pin
David Crow12-Nov-08 5:40
David Crow12-Nov-08 5:40 
GeneralRe: vc6 to vc8 conversion Pin
Mark Salsbery12-Nov-08 9:10
Mark Salsbery12-Nov-08 9:10 
GeneralRe: vc6 to vc8 conversion Pin
Russell'12-Nov-08 22:12
Russell'12-Nov-08 22:12 
GeneralRe: vc6 to vc8 conversion Pin
Mark Salsbery13-Nov-08 6:19
Mark Salsbery13-Nov-08 6:19 
GeneralRe: vc6 to vc8 conversion Pin
Russell'13-Nov-08 7:54
Russell'13-Nov-08 7:54 
GeneralRe: vc6 to vc8 conversion Pin
Mark Salsbery13-Nov-08 8:31
Mark Salsbery13-Nov-08 8:31 
AnswerRe: vc6 to vc8 conversion Pin
Joe Woodbury12-Nov-08 11:47
professionalJoe Woodbury12-Nov-08 11:47 
GeneralRe: vc6 to vc8 conversion Pin
Russell'12-Nov-08 22:20
Russell'12-Nov-08 22:20 
QuestionThe WM_DEVICECHANGE question Pin
josip cagalj12-Nov-08 3:28
josip cagalj12-Nov-08 3:28 
AnswerRe: The WM_DEVICECHANGE question Pin
Roger Stoltz12-Nov-08 3:58
Roger Stoltz12-Nov-08 3:58 

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.