Click here to Skip to main content
15,908,834 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Stuart Dootson10-Jun-07 7:55
professionalStuart Dootson10-Jun-07 7:55 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Vlad010-Jun-07 8:11
Vlad010-Jun-07 8:11 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Stuart Dootson10-Jun-07 8:27
professionalStuart Dootson10-Jun-07 8:27 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Vlad011-Jun-07 8:20
Vlad011-Jun-07 8:20 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Stuart Dootson11-Jun-07 8:40
professionalStuart Dootson11-Jun-07 8:40 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Vlad012-Jun-07 8:20
Vlad012-Jun-07 8:20 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Stuart Dootson12-Jun-07 8:57
professionalStuart Dootson12-Jun-07 8:57 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame [modified] Pin
Vlad013-Jun-07 5:13
Vlad013-Jun-07 5:13 
Yes, I guessed, looking at the code in atlctrlx.h,
that LVS_OWNERDATA belongs to the same kind of style
as all WS_XXX styles, so placed it in the first template
parameter. But this produced no effect -- no notifications
LVN_ODSTATECHANGED or LVN_SETDISPINFO were triggered by the app.

In fact the class CCheckListViewCtrlImplTraits<...>
has no member fields, it only defines three member functions
GetWndStyle(DWORD dwStyle), GetWndExStyle(DWORD dwExStyle) and
GetExtendedLVStyle(). The first 2 of them IGNORE first 2 template
parameters if being called with non-zero style argument.

So it seems that if these 2 functions were called at all,
say, by CListView constructor, they were called with non-zero
argument (default style for List View), so these 2 template parameters were ignored and CListView was constructed with some set of default style arguments, not including LVS_OWNERDATA.

I tried to modify the style "manually",
adding the line

ModifyStyle(0,GetWndStyle(0),0);

to OnCreate(), but this again produced no effect.






-- modified at 11:18 Wednesday 13th June, 2007
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame Pin
Stuart Dootson12-Jun-07 11:17
professionalStuart Dootson12-Jun-07 11:17 
GeneralRe: Communication of CCheckListViewCtrl with parent CMainFrame [modified] Pin
Vlad013-Jun-07 5:58
Vlad013-Jun-07 5:58 
QuestionUsing fonction recv , dynamic buffer Pin
NorGUI8-Jun-07 4:23
NorGUI8-Jun-07 4:23 
AnswerRe: Using fonction recv , dynamic buffer Pin
Stuart Dootson8-Jun-07 11:08
professionalStuart Dootson8-Jun-07 11:08 
QuestionDereferencing a function pointer in std::map Pin
Cpt Rick8-Jun-07 2:37
Cpt Rick8-Jun-07 2:37 
AnswerRe: Dereferencing a function pointer in std::map [modified] Pin
Stuart Dootson8-Jun-07 2:57
professionalStuart Dootson8-Jun-07 2:57 
GeneralRe: Dereferencing a function pointer in std::map Pin
Cpt Rick8-Jun-07 3:16
Cpt Rick8-Jun-07 3:16 
Questionplease Its Urgent Pin
Banks K7-Jun-07 20:03
Banks K7-Jun-07 20:03 
AnswerRe: please Its Urgent Pin
Paul Conrad14-Jul-07 11:11
professionalPaul Conrad14-Jul-07 11:11 
QuestionWhy can not define _ATL_MIN_CRT in Service Project? Pin
samfromcn6-Jun-07 23:05
samfromcn6-Jun-07 23:05 
AnswerRe: Why can not define _ATL_MIN_CRT in Service Project? Pin
Stuart Dootson7-Jun-07 0:27
professionalStuart Dootson7-Jun-07 0:27 
Questionhow can an ATL get its own name in the container? Pin
Rex.xie6-Jun-07 3:14
Rex.xie6-Jun-07 3:14 
AnswerRe: how to get the instance name of an ATL shown in the container. Pin
Steve S7-Jun-07 2:36
Steve S7-Jun-07 2:36 
GeneralRe: how to get the instance name of an ATL shown in the container. Pin
Rex.xie7-Jun-07 16:47
Rex.xie7-Jun-07 16:47 
GeneralRe: how to get the instance name of an ATL shown in the container. Pin
Steve S11-Jun-07 21:22
Steve S11-Jun-07 21:22 
GeneralRe: how to get the instance name of an ATL shown in the container. Pin
Rex.xie11-Jun-07 21:30
Rex.xie11-Jun-07 21:30 
Questionhow to block print screen with C++ Pin
satish_abiram5-Jun-07 3:17
satish_abiram5-Jun-07 3:17 

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.