why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired?
-
why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? i am a WTL beginner i have a WTL SDI framewnd application and a user-defined class, which is inherited from WTL CListViewCtrl to create a virtual listview control, will act as view class of the application i've set the(LVS_OWNERDATA) style for it. i've also read the following thread <WTL: Reflect notifications to a control> http://www.codeproject.com/script/Forums/View.aspx?fid=4486&msg=468889 my problem is somehow different listview is wrapped by a WTL::CSplitterWindow class then the splitter is added to MainFrame window, acutally the mainframe window is splitted into two views i have reflected the message in mainframe class and i am processing it in my view class ( which is inherited from WTL CListviewctrl) using REFLECTED_NOTIFY_CODE_HANDLER(LVN_GETDISPINFO,OnGetDispInfoFileList) DEFAULT_REFLECTION_HANDLER() as the above mentioned thread reply says (by MIKE) mainframe message is reflected back ... but i don't know if there is problem in splitterwindow class, which is in between the listview and framewindow ...i don't know how to modify splitterwindow( i suppose not ) because it is pre-written WTL class ... my machine soft config is WIN XP-SP2 DOTNET 2005 enterprise ed. latest PSDK IE 6 anyone if you know, could you tell me why :confused: Thanks in advance. RAM *********
-
why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? i am a WTL beginner i have a WTL SDI framewnd application and a user-defined class, which is inherited from WTL CListViewCtrl to create a virtual listview control, will act as view class of the application i've set the(LVS_OWNERDATA) style for it. i've also read the following thread <WTL: Reflect notifications to a control> http://www.codeproject.com/script/Forums/View.aspx?fid=4486&msg=468889 my problem is somehow different listview is wrapped by a WTL::CSplitterWindow class then the splitter is added to MainFrame window, acutally the mainframe window is splitted into two views i have reflected the message in mainframe class and i am processing it in my view class ( which is inherited from WTL CListviewctrl) using REFLECTED_NOTIFY_CODE_HANDLER(LVN_GETDISPINFO,OnGetDispInfoFileList) DEFAULT_REFLECTION_HANDLER() as the above mentioned thread reply says (by MIKE) mainframe message is reflected back ... but i don't know if there is problem in splitterwindow class, which is in between the listview and framewindow ...i don't know how to modify splitterwindow( i suppose not ) because it is pre-written WTL class ... my machine soft config is WIN XP-SP2 DOTNET 2005 enterprise ed. latest PSDK IE 6 anyone if you know, could you tell me why :confused: Thanks in advance. RAM *********
problem is fixed !!! As microsoft says, notification messages of child window is posted to parent window here, my parent windows is a splitter so it needs a message feeder in order to convey all messages to top level window. adding the following thing in the splitterwnd sets a pullstop to the problem.. FORWARED_MESSAGES() RAM ** i've never seen a wand it gives anything ** ** i am never going to deny it after seeing CP **
-
why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? i am a WTL beginner i have a WTL SDI framewnd application and a user-defined class, which is inherited from WTL CListViewCtrl to create a virtual listview control, will act as view class of the application i've set the(LVS_OWNERDATA) style for it. i've also read the following thread <WTL: Reflect notifications to a control> http://www.codeproject.com/script/Forums/View.aspx?fid=4486&msg=468889 my problem is somehow different listview is wrapped by a WTL::CSplitterWindow class then the splitter is added to MainFrame window, acutally the mainframe window is splitted into two views i have reflected the message in mainframe class and i am processing it in my view class ( which is inherited from WTL CListviewctrl) using REFLECTED_NOTIFY_CODE_HANDLER(LVN_GETDISPINFO,OnGetDispInfoFileList) DEFAULT_REFLECTION_HANDLER() as the above mentioned thread reply says (by MIKE) mainframe message is reflected back ... but i don't know if there is problem in splitterwindow class, which is in between the listview and framewindow ...i don't know how to modify splitterwindow( i suppose not ) because it is pre-written WTL class ... my machine soft config is WIN XP-SP2 DOTNET 2005 enterprise ed. latest PSDK IE 6 anyone if you know, could you tell me why :confused: Thanks in advance. RAM *********